summaryrefslogtreecommitdiff
path: root/lib/logger/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/logger/log.c')
-rw-r--r--lib/logger/log.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c
index 3a6606e..fd226e5 100644
--- a/lib/logger/log.c
+++ b/lib/logger/log.c
@@ -19,3 +19,17 @@ void log(char *module_name, int log_level, char *format_string, ...)
}
+void panic(char *module_name, char *format_string)
+{
+
+ PutConsole("!! KERNEL PANIC !! ",0b1111100000000000,0);
+ PutConsole(module_name,0b1111100000000000,0);
+ PutConsole(" : ",0b0000011111100000,0);
+ PutConsole(format_string,0b1111100000000000,0);
+
+
+ while(1); // halt
+
+
+
+}