next up previous contents index
Next: 10.8.6 trap_dump: dump a Up: (X86) Base Environment: Trap Previous: 10.8.4 base_trap_handlers: Array of

10.8.5 base_trap_default_handler: default trap handler for unexpected traps

   

SYNOPSIS

#include <oskit/x86/pc/base_trap.h>

void base_trap_default_handler(struct trap_state *state);

DESCRIPTION

This routine is the default handler for all traps in the base environment. It simply displays displays the trap state information and then calls panic.

It is expected that the client OS will override entries in the base_trap_handlers array for traps it cares about. Alternatively, the client OS may override the base_trap_default_handler entrypoint entirely.

PARAMETERS

state
A pointer to the processor state at the time of the interrupt.

DEPENDENCIES

struct trap_state
10.8.1



University of Utah Flux Research Group