]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/trap.h
xnu-792.6.76.tar.gz
[apple/xnu.git] / osfmk / ppc / trap.h
index 0cecf5f0c0211801e014c07e6a9ee9811c0fdce2..bb758d7d56a0e73d1d565af08d283be8bb5135aa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -55,7 +55,7 @@
 #define NARGS  12
 /* Size to reserve in frame for arguments - first 8 are in registers */
 #define ARG_SIZE FM_ALIGN((NARGS-8)*4)
-
+#define MUNGE_ARGS_SIZE FM_ALIGN(8*8)
 
 /*
  * Hardware exception vectors for powerpc are in exception.h
 
 #include <mach/thread_status.h>
 #include <mach/boolean.h>
+#include <mach/kern_return.h>
 #include <ppc/thread.h>
 
 extern void                    doexception(int exc, int code, int sub);
 
-extern void                    thread_exception_return(void);
+extern struct savearea*        trap(int trapno,
+                                    struct savearea *ss,
+                                    unsigned int dsisr,
+                                    addr64_t dar);
 
-extern boolean_t               alignment(unsigned long dsisr,
-                                         unsigned long dar,
-                                         struct ppc_saved_state *ssp);
+typedef kern_return_t (*perfCallback)(int trapno, struct savearea *ss, 
+       unsigned int dsisr, addr64_t dar);
 
-extern struct ppc_saved_state* trap(int trapno,
-                                    struct ppc_saved_state *ss,
-                                    unsigned int dsisr,
-                                    unsigned int dar);
+extern perfCallback perfTrapHook;
+extern perfCallback perfASTHook;
+extern perfCallback perfIntHook;
 
-extern struct ppc_saved_state* interrupt(int intno,
-                                        struct ppc_saved_state *ss,
+extern struct savearea* interrupt(int intno,
+                                        struct savearea *ss,
                                         unsigned int dsisr,
                                         unsigned int dar);
 
 extern int                     syscall_error(int exception,
                                              int code,
                                              int subcode,
-                                             struct ppc_saved_state *ss);
-
+                                             struct savearea *ss);
 
-extern int                     procitab(unsigned, void (*)(int), int);
 
 #endif /* ASSEMBLER */