mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Test the map_to function
This commit is contained in:
@@ -52,12 +52,7 @@ 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());
|
||||
|
||||
for i in 0.. {
|
||||
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