Return to exception.c CVS log | Up to [local] / prex-old / usr / test / exception |
version 1.1.1.1, 2008/06/03 10:38:51 | version 1.1.1.1.2.1, 2008/08/13 17:12:46 | ||
---|---|---|---|
|
|
||
#include <stdio.h> | #include <stdio.h> | ||
static void | static void | ||
my_exception(int code, void *regs) | my_exception(int code) | ||
{ | { | ||
printf("Get exception code=%x regs=%x\n", code, (u_int)regs); | printf("Get exception code=%x\n", code); | ||
exception_return(regs); | exception_return(); | ||
/* Control never comes here */ | /* Control never comes here */ | ||
panic("Ooops!"); | panic("Ooops!"); |