mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Test it
This commit is contained in:
@@ -68,6 +68,8 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) {
|
|||||||
memory_map_tag.memory_areas());
|
memory_map_tag.memory_areas());
|
||||||
|
|
||||||
memory::test_paging(&mut frame_allocator);
|
memory::test_paging(&mut frame_allocator);
|
||||||
|
memory::remap_the_kernel(&mut frame_allocator, boot_info);
|
||||||
|
println!("It did not crash!");
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
pub use self::area_frame_allocator::AreaFrameAllocator;
|
pub use self::area_frame_allocator::AreaFrameAllocator;
|
||||||
pub use self::paging::test_paging;
|
pub use self::paging::test_paging;
|
||||||
|
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