mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-23 02:11:54 +01:00
Improve panic()
This commit is contained in:
parent
1cb7b4e69e
commit
efaf94491e
@ -1,10 +1,19 @@
|
||||
#include "panic.h"
|
||||
#include "../Platform/Platform.h"
|
||||
|
||||
extern "C" {
|
||||
#include <Library/BaseLib.h> // for CpuDeadLoop
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
void panic(void)
|
||||
{
|
||||
DebugLog(2, "A fatal error happened. System halted\n");
|
||||
CpuDeadLoop();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user