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:
This graph shows which files directly or indirectly include this file:

Macros

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

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; \
Core::die(); \
} while (0)
#define DBG
An output stream, which is displayed in the debug window of the core it was executed on.
Definition output.h:34
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