mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
Remove redundant import
This commit is contained in:
@@ -48,7 +48,7 @@ pub fn init_frame_allocator(
|
||||
/// `physical_memory_offset`. Also, this function must be only called once
|
||||
/// to avoid aliasing `&mut` references (which is undefined behavior).
|
||||
unsafe fn active_level_4_table(physical_memory_offset: u64) -> &'static mut PageTable {
|
||||
use x86_64::{registers::control::Cr3, VirtAddr};
|
||||
use x86_64::registers::control::Cr3;
|
||||
|
||||
let (level_4_table_frame, _) = Cr3::read();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user