Call remap_the_kernel from rust_main

This commit is contained in:
Philipp Oppermann
2017-04-18 12:21:47 +02:00
parent 5d898d8474
commit 40f1732ccb
2 changed files with 5 additions and 1 deletions

View File

@@ -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() {}

View File

@@ -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;