diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-08-29 19:56:40 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-08-29 19:56:40 +0200 |
| commit | 47d22a238a6c5d60c6abfac724e6ad91885cdd67 (patch) | |
| tree | bd3893777b58aac7c94d68fe2a4ba57cfbdb38ec /lib | |
| parent | 659f1f1ae057c82a154a1fd32cc9dca040979daa (diff) | |
added paging support
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/logger/log.c | 14 | ||||
| -rw-r--r-- | lib/logger/log.h | 1 |
2 files changed, 15 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 + + + +} 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 |
