kern
diff src/main.c @ 13:6c9138a87e02
added register dump in panic()
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 23 Feb 2011 00:12:36 +0200 |
parents | eaec918de072 |
children | 2cbc2b922e49 |
line diff
1.1 --- a/src/main.c Tue Feb 22 18:51:44 2011 +0200 1.2 +++ b/src/main.c Wed Feb 23 00:12:36 2011 +0200 1.3 @@ -4,6 +4,7 @@ 1.4 #include <asmops.h> 1.5 #include "segm.h" 1.6 #include "intr.h" 1.7 +#include "panic.h" 1.8 1.9 /* special keys */ 1.10 enum { 1.11 @@ -48,6 +49,8 @@ 1.12 1.13 asm volatile("int $0x80"); 1.14 1.15 + panic("foo\n"); 1.16 + 1.17 for(;;) { 1.18 char c, keypress; 1.19 do {