MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / OSPanic

Function OSPanic

src/dolphin/src/os/OSError.c:23–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23__declspec(weak) void OSPanic(const char* file, int line, const char* msg, ...)
24{
25 va_list marker;
26 u32 i;
27 u32* p;
28
29 OSDisableInterrupts();
30 va_start(marker, msg);
31 vprintf(msg, marker);
32 va_end(marker);
33 OSReport(" in \"%s\" on line %d.\n", file, line);
34
35 OSReport("\nAddress: Back Chain LR Save\n");
36 for (i = 0, p = (u32*)OSGetStackPointer(); p && (u32)p != 0xffffffff && i++ < 16; p = (u32*)*p)
37 {
38 OSReport("0x%08x: 0x%08x 0x%08x\n", p, p[0], p[1]);
39 }
40
41 PPCHalt();
42}
43
44OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler)
45{

Callers 5

DVDConvertPathToEntrynumFunction · 0.85
DVDSeekAsyncPrioFunction · 0.85
exiinthandlerFunction · 0.85
iSystemInitFunction · 0.85
iSystemExitFunction · 0.85

Calls 3

OSDisableInterruptsFunction · 0.85
vprintfFunction · 0.85
OSReportFunction · 0.85

Tested by

no test coverage detected