|
tape-kernel 1.0
a modular modern independent kernel
|
#include "../lib/types.h"

Go to the source code of this file.
Macros | |
| #define | assert __assert |
| #define | panic __panic |
| #define | __assert(cond, msg) |
Functions | |
| void | __panic (const char *txt) |
| panic halts the system with a kernel panic message | |
| #define __assert | ( | cond, | |
| msg ) |
| #define assert __assert |
Definition at line 4 of file err.h.
Referenced by ___init(), __alc(), __anew(), __drw(), __ffsinit(), __fsadd(), __fsdelete(), __fsnextlba(), __ideinit(), __irsec(), __iwrt(), __prt(), and __rdln().
| #define panic __panic |
| void __panic | ( | const char * | txt | ) |
panic halts the system with a kernel panic message
panic is a function that clears the screen to red, displays a kernel panic banner with the provided message, and halts forever
| txt,the | error message to display |
when panic is called the system becomes unrecoverable, it will always halt, so use it only for fatal unrecoverable errors
using panic is done with