()
| 6 | |
| 7 | #[no_mangle] |
| 8 | pub extern "C" fn _start() -> ! { |
| 9 | serial_print!("stack_overflow::stack_overflow...\t"); |
| 10 | |
| 11 | blog_os::gdt::init(); |
| 12 | init_test_idt(); |
| 13 | |
| 14 | // trigger a stack overflow |
| 15 | stack_overflow(); |
| 16 | |
| 17 | panic!("Execution continued after stack overflow"); |
| 18 | } |
| 19 | |
| 20 | #[allow(unconditional_recursion)] |
| 21 | fn stack_overflow() { |
nothing calls this directly
no test coverage detected