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

Function MEMIntrruptHandler

src/dolphin/src/os/OSMemory.c:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static void MEMIntrruptHandler(__OSInterrupt interrupt, OSContext* context)
37{
38 u32 addr;
39 u32 cause;
40
41 cause = __MEMRegs[0xf];
42 addr = (((u32)__MEMRegs[0x12] & 0x3ff) << 16) | __MEMRegs[0x11];
43 __MEMRegs[0x10] = 0;
44
45 if (__OSErrorTable[OS_ERROR_PROTECTION])
46 {
47 __OSErrorTable[OS_ERROR_PROTECTION](OS_ERROR_PROTECTION, context, cause, addr);
48 return;
49 }
50
51 __OSUnhandledException(OS_ERROR_PROTECTION, context, cause, addr);
52}
53
54asm void Config24MB()
55{

Callers

nothing calls this directly

Calls 1

__OSUnhandledExceptionFunction · 0.85

Tested by

no test coverage detected