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,7 +53,10 @@ pub extern fn rust_main(multiboot_information_address: usize) {
|
||||
kernel_start as usize, kernel_end as usize, multiboot_start,
|
||||
multiboot_end, memory_map_tag.memory_areas());
|
||||
|
||||
loop{}
|
||||
memory::remap_the_kernel(&mut frame_allocator, boot_info);
|
||||
println!("It did not crash!");
|
||||
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[lang = "eh_personality"] extern fn eh_personality() {}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
pub use self::area_frame_allocator::AreaFrameAllocator;
|
||||
pub use self::paging::remap_the_kernel;
|
||||
use self::paging::PhysicalAddress;
|
||||
|
||||
mod area_frame_allocator;
|
||||
|
||||
Reference in New Issue
Block a user