Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. kernel
  6. handle_terminal_exception

handle_terminal_exception

Function handle_terminal_exception 

Source
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.