diff --git a/src/lib.rs b/src/lib.rs index 6a8ca74f..fed0b0dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,8 +56,12 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) { // initialize our IDT interrupts::init(); - // trigger a debug exception - unsafe { int!(1) }; + fn stack_overflow() { + stack_overflow(); // for each recursion, the return address is pushed + } + + // trigger a stack overflow + stack_overflow(); println!("It did not crash!"); loop {}