Mercurial > lcfOS
diff cos/kernel/handlers.c @ 29:7e3bdcb391dc
Added get_page function to mm
author | windel |
---|---|
date | Thu, 29 Dec 2011 19:34:01 +0100 |
parents | dcce92b1efbc |
children | 0148f55bfe24 |
line wrap: on
line diff
--- a/cos/kernel/handlers.c Wed Dec 28 13:38:43 2011 +0100 +++ b/cos/kernel/handlers.c Thu Dec 29 19:34:01 2011 +0100 @@ -229,6 +229,8 @@ { uint64_t faulting_address; + printf("Segfault!\n"); + // Retrieve failed page from CR2: asm volatile("mov %%cr2, %0" : "=r" (faulting_address)); @@ -298,7 +300,7 @@ void INTDEF_handler() { - printf("Default int handler called\n"); + panic("Default int handler called\n"); }