summaryrefslogtreecommitdiff
path: root/kc/core/panic.h
diff options
context:
space:
mode:
Diffstat (limited to 'kc/core/panic.h')
-rw-r--r--kc/core/panic.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kc/core/panic.h b/kc/core/panic.h
new file mode 100644
index 0000000..0cfd7c2
--- /dev/null
+++ b/kc/core/panic.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <stdnoreturn.h>
+
+enum panic_reason
+{
+ GENERAL_PANIC,
+ UNHANDLED_FAULT,
+ OUT_OF_MEMORY,
+};
+
+noreturn void panic(enum panic_reason reason);
+noreturn void halt(void);