mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Call remap_the_kernel from rust_main
This commit is contained in:
@@ -53,6 +53,9 @@ pub extern fn rust_main(multiboot_information_address: usize) {
|
|||||||
kernel_start as usize, kernel_end as usize, multiboot_start,
|
kernel_start as usize, kernel_end as usize, multiboot_start,
|
||||||
multiboot_end, memory_map_tag.memory_areas());
|
multiboot_end, memory_map_tag.memory_areas());
|
||||||
|
|
||||||
|
memory::remap_the_kernel(&mut frame_allocator, boot_info);
|
||||||
|
println!("It did not crash!");
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
pub use self::area_frame_allocator::AreaFrameAllocator;
|
pub use self::area_frame_allocator::AreaFrameAllocator;
|
||||||
|
pub use self::paging::remap_the_kernel;
|
||||||
use self::paging::PhysicalAddress;
|
use self::paging::PhysicalAddress;
|
||||||
|
|
||||||
mod area_frame_allocator;
|
mod area_frame_allocator;
|
||||||
|
|||||||
Reference in New Issue
Block a user