StuBS
kernelpanic.h File Reference

Macro to print an error message and stop the current core. More...

#include "debug/output.h"
#include "machine/core.h"
Include dependency graph for kernelpanic.h:

Macros

#define kernelpanic(MSG)
 Print an error message in the debug window and stop the current core. More...
 

Detailed Description

Macro to print an error message and stop the current core.

Macro Definition Documentation

◆ kernelpanic

#define kernelpanic (   MSG)
Value:
do { \
DBG << "PANIC: '" << (MSG) << "' in " << __func__ \
<< " @ " << __FILE__ << ":" << __LINE__ \
<< flush; \
} while (0)
void die()
Permanently halts the core.
Definition: core.h:107
OutputStream & flush(OutputStream &os)
Enforces a buffer flush.
Definition: outputstream.cc:144

Print an error message in the debug window and stop the current core.

Parameters
MSGerror message