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__ << ") - CPU stopped." \
<< endl; \
} while (0)
void die()
Permanently halts the core.
Definition: core.h:107
OutputStream & endl(OutputStream &os)
Prints a newline character to the stream and issues a buffer flush.
Definition: outputstream.cc:151

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

Parameters
MSGerror message