CloverBootloader/rEFIt_UEFI/Platform/Posix/abort.cpp

28 lines
414 B
C++
Raw Normal View History

#ifdef CLOVER_BUILD
#include "../../Platform/BootLog.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <Library/BaseLib.h> // for CpuDeadLoop
#ifdef __cplusplus
} // extern "C"
#endif
#else
#include <Platform.h>
#endif
void abort(void)
{
2020-04-16 11:09:22 +02:00
DebugLog(2, "A fatal error happened. System halted\n");
while (1) { // tis will avoid warning : Function declared 'noreturn' should not return
CpuDeadLoop();
2020-04-16 11:09:22 +02:00
}
}