mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add and call test_paging function
This commit is contained in:
@@ -59,13 +59,7 @@ pub extern fn rust_main(multiboot_information_address: usize) {
|
||||
let mut frame_allocator = memory::AreaFrameAllocator::new(kernel_start as usize,
|
||||
kernel_end as usize, multiboot_start, multiboot_end, memory_map_tag.memory_areas());
|
||||
|
||||
for i in 0.. {
|
||||
use memory::FrameAllocator;
|
||||
if let None = frame_allocator.allocate_frame() {
|
||||
println!("allocated {} frames", i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
memory::test_paging(&mut frame_allocator);
|
||||
|
||||
loop{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user