mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27: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
|
/// `physical_memory_offset`. Also, this function must be only called once
|
||||||
/// to avoid aliasing `&mut` references (which is undefined behavior).
|
/// to avoid aliasing `&mut` references (which is undefined behavior).
|
||||||
unsafe fn active_level_4_table(physical_memory_offset: u64) -> &'static mut PageTable {
|
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();
|
let (level_4_table_frame, _) = Cr3::read();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user