]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/trap.h
xnu-1486.2.11.tar.gz
[apple/xnu.git] / osfmk / ppc / trap.h
index e3c69f0bb675411079353581fcd3b60dd6faa152..2a4a33ca8d3f71605aa5bdd3ed4d338b148324c4 100644 (file)
@@ -74,7 +74,8 @@
 #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,
@@ -84,9 +85,9 @@ extern struct savearea*       trap(int trapno,
 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,
@@ -94,8 +95,8 @@ extern struct savearea* interrupt(int intno,
                                         unsigned int dar);
 
 extern int                     syscall_error(int exception,
-                                             int code,
-                                             int subcode,
+                                             int64_t code,
+                                             int64_t subcode,
                                              struct savearea *ss);