AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
panic.h File Reference
#include <core/system.h>
#include <core/printk.h>
#include <core/arch.h>

Go to the source code of this file.

Macros

#define __PANIC_MSG   "Bailing out. You are on your own. Good luck.\n"
#define panic(s)

Macro Definition Documentation

◆ __PANIC_MSG

#define __PANIC_MSG   "Bailing out. You are on your own. Good luck.\n"

Definition at line 8 of file panic.h.

◆ panic

#define panic ( s)
Value:
{\
printk("KERNEL PANIC:\n%s [%d] %s: %s\n" __PANIC_MSG, \
__FILE__, __LINE__, __func__, s);\
arch_stack_trace(); \
arch_interrupts_disable(); \
for(;;); \
}\
#define __PANIC_MSG
Definition panic.h:11

Definition at line 13 of file panic.h.