|
|
|
@ -42,14 +42,14 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) {
|
|
|
|
|
enable_write_protect_bit();
|
|
|
|
|
|
|
|
|
|
// set up guard page and map the heap pages
|
|
|
|
|
memory::init(boot_info);
|
|
|
|
|
let mut memory_controller = memory::init(boot_info);
|
|
|
|
|
|
|
|
|
|
unsafe {
|
|
|
|
|
HEAP_ALLOCATOR.lock().init(HEAP_START, HEAP_START + HEAP_SIZE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// initialize our IDT
|
|
|
|
|
interrupts::init();
|
|
|
|
|
interrupts::init(&mut memory_controller);
|
|
|
|
|
|
|
|
|
|
for i in 0..10000 {
|
|
|
|
|
format!("Some String");
|
|
|
|
|