#include <mach/kern_return.h>
#include <ppc/thread.h>
-extern void doexception(int exc, int code, int sub);
+extern void doexception(int exc, mach_exception_code_t code,
+ mach_exception_subcode_t sub);
extern struct savearea* trap(int trapno,
struct savearea *ss,
typedef kern_return_t (*perfCallback)(int trapno, struct savearea *ss,
unsigned int dsisr, addr64_t dar);
-extern perfCallback perfTrapHook;
-extern perfCallback perfASTHook;
-extern perfCallback perfIntHook;
+extern volatile perfCallback perfTrapHook;
+extern volatile perfCallback perfASTHook;
+extern volatile perfCallback perfIntHook;
extern struct savearea* interrupt(int intno,
struct savearea *ss,
unsigned int dar);
extern int syscall_error(int exception,
- int code,
- int subcode,
+ int64_t code,
+ int64_t subcode,
struct savearea *ss);