|
PatchworkOS
da8a090
A non-POSIX operating system.
|
Panic handling. More...
Panic handling.
Macros | |
| #define | PANIC_NO_CPU_ID UINT32_MAX |
| Cpu ID indicating no CPU has panicked yet. | |
| #define | PANIC_MAX_STACK_FRAMES 16 |
| Maximum stack frames to capture in a panic. | |
| #define | QEMU_EXIT_ON_PANIC_PORT 0x501 |
| QEMU exit port for panic. | |
Functions | |
| void | panic_stack_trace (const interrupt_frame_t *frame) |
| Print a stack trace from a interrupt frame. | |
| NORETURN void | panic (const interrupt_frame_t *frame, const char *format,...) |
| Panic the kernel, printing a message and halting. | |
| #define PANIC_NO_CPU_ID UINT32_MAX |
| #define PANIC_MAX_STACK_FRAMES 16 |
| #define QEMU_EXIT_ON_PANIC_PORT 0x501 |
| void panic_stack_trace | ( | const interrupt_frame_t * | frame | ) |
| NORETURN void panic | ( | const interrupt_frame_t * | frame, |
| const char * | format, | ||
| ... | |||
| ) |
Panic the kernel, printing a message and halting.
If QEMU_EXIT_ON_PANIC is defined and we are running in QEMU, will exit QEMU instead of halting.
| frame | Pointer to the interrupt frame, can be NULL. |
| format | The format string for the panic message. |
| ... | Additional arguments for the format string. |
Definition at line 266 of file panic.c.