From 47d22a238a6c5d60c6abfac724e6ad91885cdd67 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 29 Aug 2014 19:56:40 +0200 Subject: added paging support --- lib/logger/log.c | 14 ++++++++++++++ lib/logger/log.h | 1 + 2 files changed, 15 insertions(+) (limited to 'lib/logger') 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 @@ -18,4 +18,18 @@ void log(char *module_name, int log_level, char *format_string, ...) PutConsoleNL(); +} +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 + + + } diff --git a/lib/logger/log.h b/lib/logger/log.h index 9c32a39..251c66f 100644 --- a/lib/logger/log.h +++ b/lib/logger/log.h @@ -6,6 +6,7 @@ #define FOOLOS_LOG_FINE 1 void log(char *module_name, int prio, char *format_string, ...); +void panic(char *module_name, char *format_string); #endif -- cgit v1.2.3