X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/de355530ae67247cbd0da700edb3a2a1dae884c2..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/ppc/trap.h diff --git a/osfmk/ppc/trap.h b/osfmk/ppc/trap.h index fdc3ef828..bb758d7d5 100644 --- a/osfmk/ppc/trap.h +++ b/osfmk/ppc/trap.h @@ -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 @@ -70,17 +70,17 @@ 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, - unsigned int dar); + addr64_t dar); -typedef kern_return_t (*perfTrap)(int trapno, struct savearea *ss, - unsigned int dsisr, unsigned int dar); +typedef kern_return_t (*perfCallback)(int trapno, struct savearea *ss, + unsigned int dsisr, addr64_t dar); -extern perfTrap perfTrapHook; +extern perfCallback perfTrapHook; +extern perfCallback perfASTHook; +extern perfCallback perfIntHook; extern struct savearea* interrupt(int intno, struct savearea *ss,