MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / test_double_fault_handler

Function test_double_fault_handler

kernel/tests/stack_overflow.rs:55–62  ·  view source on GitHub ↗
(
    _stack_frame: InterruptStackFrame,
    _error_code: u64,
)

Source from the content-addressed store, hash-verified

53use x86_64::structures::idt::InterruptStackFrame;
54
55extern "x86-interrupt" fn test_double_fault_handler(
56 _stack_frame: InterruptStackFrame,
57 _error_code: u64,
58) -> ! {
59 serial_println!("[ok]");
60 exit_qemu(QemuExitCode::Success);
61 loop {}
62}
63
64pub fn init_test_idt() {
65 TEST_IDT.load();

Callers

nothing calls this directly

Calls 1

exit_qemuFunction · 0.85

Tested by

no test coverage detected