aboutsummaryrefslogtreecommitdiff
path: root/kernel/l0/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/l0/sys.c')
-rw-r--r--kernel/l0/sys.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/kernel/l0/sys.c b/kernel/l0/sys.c
deleted file mode 100644
index 2b77463..0000000
--- a/kernel/l0/sys.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <sys.h>
-#include <dbglog.h>
-
-
-// Kernel panic and kernel assert failure
-
-static void panic_do(const char* type, const char *msg, const char* file, int line) {
- asm volatile("cli;");
- dbg_printf("/\n| %s:\t%s\n", type, msg);
- dbg_printf("| File: \t%s:%i\n", file, line);
- dbg_printf("| System halted -_-'\n");
- dbg_printf("\\---------------------------------------------------------/");
- BOCHS_BREAKPOINT;
- asm volatile("hlt");
-}
-
-void panic(const char* message, const char* file, int line) {
- panic_do("PANIC", message, file, line);
-}
-
-void panic_assert(const char* assertion, const char* file, int line) {
- panic_do("ASSERT FAILED", assertion, file, line);
-}
-
-/* vim: set ts=4 sw=4 tw=0 noet :*/