MCPcopy Create free account
hub / github.com/devkitPro/libctru / ERRF_ExceptionHandler

Function ERRF_ExceptionHandler

libctru/source/errf.c:158–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void ERRF_ExceptionHandler(ERRF_ExceptionInfo* excep, CpuRegisters* regs)
159{
160 ERRF_FatalErrInfo error;
161 Result ret;
162
163 if (R_FAILED(ret = errfInit()))
164 {
165 svcBreak(USERBREAK_PANIC);
166 for(;;);
167 }
168
169 memset(&error, 0, sizeof(error));
170
171 error.type = ERRF_ERRTYPE_EXCEPTION;
172
173 error.pcAddr = regs->pc;
174 getCommonErrorData(&error, 0);
175 error.data.exception_data.excep = *excep;
176 error.data.exception_data.regs = *regs;
177
178 ret = ERRF_Throw(&error);
179
180 errfExit();
181
182 for(;;);
183}

Callers

nothing calls this directly

Calls 4

errfInitFunction · 0.85
getCommonErrorDataFunction · 0.85
ERRF_ThrowFunction · 0.85
errfExitFunction · 0.85

Tested by

no test coverage detected