/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
#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 */