Test our exception handler by invoking a breakpoint exception

master
Philipp Oppermann 8 years ago
parent fab320271a
commit 93aff8cfa8

@ -48,12 +48,17 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) {
HEAP_ALLOCATOR.lock().init(HEAP_START, HEAP_START + HEAP_SIZE);
}
// initialize our IDT
interrupts::init();
for i in 0..10000 {
format!("Some String");
}
println!("It did not crash!");
// invoke a breakpoint exception
x86_64::instructions::interrupts::int3();
println!("It did not crash!");
loop {}
}

Loading…
Cancel
Save