summaryrefslogtreecommitdiff
path: root/src/panic.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-27 15:33:22 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-27 15:33:22 +0200
commitefb1cf0895d6c5019f5a88fa14b59afd030fefca (patch)
tree24fe5d99faad9eeed625d0ef1a6edea65482e246 /src/panic.c
parentb5a24778844f41e38168d97761d72cf0d5b400b3 (diff)
Setup descriptor tables, and enable interrupts
Diffstat (limited to 'src/panic.c')
-rw-r--r--src/panic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/panic.c b/src/panic.c
new file mode 100644
index 0000000..5b17b04
--- /dev/null
+++ b/src/panic.c
@@ -0,0 +1,8 @@
+#include "aplos.h"
+
+void
+panic(void)
+{
+ print(u8"--- PANIC ---\n");
+ halt();
+}