Files | |
| file | interrupt.h |
| file | interrupt.c |
| Interrupt redirector. | |
Defines | |
| #define | IVT_ITEMS 0 |
| #define | IVT_FIRST 0 |
| #define | fault_if_from_uspace(istate, cmd,) |
Functions | |
| iroutine | exc_register (int n, const char *name, iroutine f) |
| void | exc_dispatch (int n, istate_t *t) |
| void | exc_init (void) |
| SPINLOCK_INITIALIZE (exctbl_lock) | |
| static void | exc_undef (int n, istate_t *istate) |
| static int | exc_print_cmd (cmd_arg_t *argv) |
Variables | |
| struct { | |
| SPINLOCK_DECLARE (lock) | |
| const char * name | |
| iroutine f | |
| int count | |
| zone_t * info [ZONES_MAX] | |
| } | exc_table [IVT_ITEMS] |
| static cmd_info_t | exc_info |
|
|
Value: { \
if (istate_from_uspace(istate)) { \
klog_printf(cmd, ##__VA_ARGS__); \
klog_printf("Task %lld got exception at PC:%p. Task killed.", TASK->taskid, istate_get_pc(istate)); \
task_kill(TASK->taskid); \
thread_exit(); \
} \
}
Definition at line 55 of file interrupt.h. Referenced by exc_undef(). |
|
|
Definition at line 52 of file interrupt.h. Referenced by exc_dispatch(), exc_print_cmd(), and interrupt_register(). |
|
|
Definition at line 48 of file interrupt.h. Referenced by exc_dispatch(), exc_init(), exc_print_cmd(), exc_register(), and interrupt_register(). |
|
||||||||||||
|
Dispatch exception according to exception table Called directly from the assembler code. CPU is interrupts_disable()'d. Definition at line 86 of file interrupt.c. References ASSERT, exc_table, istate_from_uspace(), IVT_FIRST, IVT_ITEMS, THREAD, and thread_exit(). Here is the call graph for this function: ![]() |
|
|
Initialize generic exception handling support Definition at line 140 of file interrupt.c. References cmd_initialize(), cmd_register(), exc_info, exc_register(), exc_undef(), IVT_ITEMS, and panic. Referenced by main_bsp_separated_stack(). Here is the call graph for this function: ![]() |
|
|
kconsole cmd - print all exceptions Definition at line 104 of file interrupt.c. References exc_table, f, get_symtab_entry(), getc(), IVT_FIRST, IVT_ITEMS, name, printf(), spinlock_lock, spinlock_unlock(), and stdin. Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Register exception handler
Definition at line 64 of file interrupt.c. References ASSERT, exc_table, IVT_ITEMS, spinlock_lock, and spinlock_unlock(). Referenced by exc_init(), i8042_grab(), i8042_release(), and interrupt_register(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Default 'null' exception handler Definition at line 97 of file interrupt.c. References fault_if_from_uspace, and panic. Referenced by exc_init(). |
|
|
|
|
|
Initial value: {
.name = "exc",
.description = "Print exception table.",
.func = exc_print_cmd,
.help = NULL,
.argc = 0,
.argv = NULL
}
Definition at line 130 of file interrupt.c. Referenced by exc_init(). |
|
|
Referenced by exc_dispatch(), exc_print_cmd(), and exc_register(). |
|
|
Definition at line 53 of file interrupt.c. |
|
|
Definition at line 52 of file interrupt.c. |
1.4.6