diff --git a/rEFIt_UEFI/cpp_util/panic.cpp b/rEFIt_UEFI/cpp_util/panic.cpp index 4d7fec93b..7b4bf17f3 100644 --- a/rEFIt_UEFI/cpp_util/panic.cpp +++ b/rEFIt_UEFI/cpp_util/panic.cpp @@ -1,10 +1,19 @@ #include "panic.h" +#include "../Platform/Platform.h" extern "C" { #include // 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(); }