summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorPrakxo <87568477+Prakxo@users.noreply.github.com>2023-08-29 17:59:38 +0100
committerGitHub <noreply@github.com>2023-08-29 09:59:38 -0700
commita06e26eb51833838fcd5214bc488c6c31697069e (patch)
tree9a4ae9e952fee1a39c86e37214f53f93b0b84429 /src/boot
parentd7338d59fcbe7cff26926430572c5d7e4d9a21c2 (diff)
debug OK (#79)
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/libu64/debug.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/boot/libu64/debug.c b/src/boot/libu64/debug.c
new file mode 100644
index 0000000..9dc8c57
--- /dev/null
+++ b/src/boot/libu64/debug.c
@@ -0,0 +1,11 @@
+#include "libu64/debug.h"
+#include "fault.h"
+
+void _dbg_hungup(const char* name, int line) {
+ osGetThreadId(NULL);
+ fault_AddHungupAndCrash(name, line);
+}
+
+void Reset() {
+ fault_AddHungupAndCrash("Reset", 0);
+}