| 156 | } |
| 157 | |
| 158 | void 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 | } |
nothing calls this directly
no test coverage detected