#include <const.h>
#include <kernel/console.h>
#include <kernel/task.h>
#include <arch/i386.h>
#include <arch/interrupt.h>
#include <arch/mem.h>
#include <arch/paging.h>
#include <arch/v86.h>
#include <arch/exception.h>
Go to the source code of this file.
Functions | |||
| void | panic () | ||
| Panic routine. | |||
| __inline__ void | dump_registers (exc_context_t *c) | ||
Dump the CPU registers.
| |||
| void | default_exception (exc_context_t *c) | ||
This is the default exception handler. It is invoked every time an exception occurs. The kernel must route the exececution to the opportune procedures to correctly manage the exception.
| |||
| Identifier | Description
|
| 0 | Divide error |
| 1 | Debug exception |
| 2 | Nonmaskable interrupt |
| 3 | Breakpoint (one-byte INT 3 instruction) |
| 4 | Overflow (INTO instruction) |
| 5 | Bounds check (BOUND instruction) |
| 6 | Invalid opcode |
| 7 | Coprocessor not available |
| 8 | Double fault |
| 9 | (reserved) |
| 10 | Invalid TSS |
| 11 | Segment not present |
| 12 | Stack exception |
| 13 | General protection |
| 14 | Page fault |
| 15 | (reserved) |
| 16 | Coprecessor error
|
| 17-31 | (reserved) |
| 32-255 | Available for external interrupts via INTR pin
|
Definition in file exception.c.
1.2.18