summaryrefslogtreecommitdiff
path: root/kernel/panic.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-04-12 15:10:16 +0000
committerAda Christine <adachristine18@gmail.com>2021-04-12 15:10:16 +0000
commitef1166f6e83d72df360a6dfc2f6643d826ce07ba (patch)
tree1363fee07ae473b2bf81bb863792e58b1d53bb90 /kernel/panic.h
parentce2c1768fc9c0537136ff0af563766e23f2e9355 (diff)
panic() and halt() now in kernel private interface
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);