summaryrefslogtreecommitdiff
path: root/src/boot/O2/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/O2/debug.c')
-rw-r--r--src/boot/O2/debug.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/boot/O2/debug.c b/src/boot/O2/debug.c
new file mode 100644
index 000000000..3933b585e
--- /dev/null
+++ b/src/boot/O2/debug.c
@@ -0,0 +1,11 @@
+#include "global.h"
+#include "fault.h"
+
+void _dbg_hungup(const char* file, int lineNum) {
+ osGetThreadId(NULL);
+ Fault_AddHungupAndCrash(file, lineNum);
+}
+
+void Reset(void) {
+ Fault_AddHungupAndCrash("Reset", 0);
+}