pub fn handle_terminal_exception<K: Kernel>(
kernel: K,
guard: InterruptGuard<K>,
) -> InterruptGuard<K>Expand description
Handle a terminal exception in the current thread.
This should only be called from an architecture specific exception handler. An InterruptGuard is passed in and out in order to allow it to take architecturally specific action for thread termination.
If the exception occurred in user mode, the process will be terminated. If the exception occurred in kernel mode, the kernel will panic.