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