2020-03-09 02:12:24 +01:00
|
|
|
#include "panic.h"
|
2020-03-10 17:50:55 +01:00
|
|
|
#include <Platform.h>
|
2020-03-09 02:12:24 +01:00
|
|
|
|
2020-03-10 17:50:55 +01:00
|
|
|
//extern "C" {
|
|
|
|
//#include <Library/BaseLib.h> // for CpuDeadLoop
|
|
|
|
//}
|
2020-03-09 02:12:24 +01:00
|
|
|
|
2020-03-09 09:09:29 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* If this modified, you may have to change the Qemu/gdb_launch script to adjust the breakpoint line.
|
|
|
|
* gdb_launch put a breakpoint at CpuDeadLoop();
|
|
|
|
* Currently line 18
|
|
|
|
*/
|
|
|
|
|
2020-03-09 02:12:24 +01:00
|
|
|
void panic(void)
|
|
|
|
{
|
2020-03-09 09:09:29 +01:00
|
|
|
DebugLog(2, "A fatal error happened. System halted\n");
|
2020-03-09 02:12:24 +01:00
|
|
|
CpuDeadLoop();
|
|
|
|
}
|