summaryrefslogtreecommitdiff
path: root/kernel/io/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/io/panic.c')
-rw-r--r--kernel/io/panic.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/io/panic.c b/kernel/io/panic.c
deleted file mode 100644
index 403418f..0000000
--- a/kernel/io/panic.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <lib.h>
-#include <stdarg.h>
-#include <comus/asm.h>
-
-__attribute__((noreturn)) void panic(const char *format, ...)
-{
- cli();
- va_list list;
- va_start(list, format);
- printf("\n\n!!! PANIC !!!\n");
- vprintf(format, list);
- printf("\n\n");
-
- while (1)
- halt();
-}