Add chDbgPanic for unhandled exceptions.

This commit is contained in:
Jared Boone
2016-02-27 12:05:29 -08:00
parent 6101ca36cd
commit eb294c8e1c
2 changed files with 16 additions and 4 deletions

View File

@@ -178,9 +178,12 @@ vectors_t _vectors = {
__attribute__ ((naked))
#endif
void _unhandled_exception(void) {
#if CH_DBG_ENABLED
chDbgPanic("Unhandled");
#else
while (TRUE)
;
#endif
}
void NMIVector(void) __attribute__((weak, alias("_unhandled_exception")));