Test the map_to function

This commit is contained in:
Philipp Oppermann
2017-04-13 19:31:26 +02:00
parent 15c9f43622
commit b49cb6986c
3 changed files with 19 additions and 6 deletions

View File

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