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.
 

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; \
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:39

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

Parameters
MSGerror message