/* $NetBSD: ptrace.h,v 1.8 2004/05/06 22:53:02 matt Exp $ */ #ifndef _POWERPC_PTRACE_H #define _POWERPC_PTRACE_H #define PT_STEP (PT_FIRSTMACH + 0) #define PT_GETREGS (PT_FIRSTMACH + 1) #define PT_SETREGS (PT_FIRSTMACH + 2) #define PT_GETFPREGS (PT_FIRSTMACH + 3) #define PT_SETFPREGS (PT_FIRSTMACH + 4) #define PT_GETVECREGS (PT_FIRSTMACH + 5) #define PT_SETVECREGS (PT_FIRSTMACH + 6) #define PT_MACHDEP_STRINGS \ "PT_STEP", \ "PT_GETREGS", "PT_SETREGS", \ "PT_GETFPREGS", "PT_SETFPREGS", \ "PT_GETVECREGS", "PT_SETVECREGS", #ifdef _KERNEL #ifdef _KERNEL_OPT #include "opt_altivec.h" #endif #ifdef ALTIVEC /* We have machine-dependent process tracing requests. */ #define __HAVE_PTRACE_MACHDEP #define PTRACE_MACHDEP_REQUEST_CASES \ case PT_GETVECREGS: \ case PT_SETVECREGS: int ptrace_machdep_dorequest(struct proc *, struct lwp *, int, caddr_t, int); int process_machdep_dovecregs(struct proc *, struct lwp *, struct uio *); int process_machdep_validvecregs(struct proc *); /* We have machine-dependent procfs nodes. */ #define __HAVE_PROCFS_MACHDEP #define PROCFS_MACHDEP_NODE_TYPES \ Pmachdep_vecregs, /* AltiVec register set */ #define PROCFS_MACHDEP_NODETYPE_CASES \ case Pmachdep_vecregs: #define PROCFS_MACHDEP_PROTECT_CASES \ case Pmachdep_vecregs: #define PROCFS_MACHDEP_NODETYPE_DEFNS \ { DT_REG, N("vecregs"), Pmachdep_vecregs, \ procfs_machdep_validvecregs }, /* Functions used by procfs. */ struct mount; struct pfsnode; int procfs_machdep_dovecregs(struct proc *, struct lwp *, struct pfsnode *, struct uio *); int procfs_machdep_validvecregs(struct proc *, struct mount *); #endif /* ALTIVEC */ #endif /* _KERNEL */ #endif /* _POWERPC_PTRACE_H */