PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
panic.h File Reference
#include <kernel/defs.h>
#include <boot/boot_info.h>
#include <sys/list.h>
Include dependency graph for panic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.
 

Typedefs

typedef struct interrupt_frame interrupt_frame_t
 
typedef struct cpu cpu_t
 

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.
 

Typedef Documentation

◆ interrupt_frame_t

typedef struct interrupt_frame interrupt_frame_t

Definition at line 9 of file panic.h.

◆ cpu_t

typedef struct cpu cpu_t

Definition at line 10 of file panic.h.