diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-12-17 03:19:02 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-12-17 03:19:02 +0000 |
commit | 24ec58ade0f932229afc2f3eaa4ae5d9cf098c51 (patch) | |
tree | 2e91e0ba0314bdeaea270929e397751972b0d66a /sys/arch/powerpc | |
parent | db612c31eaea51b5134b19e147280173de6e12ab (diff) |
Move the process_read_reg prototype to the correct file, it is specified
in ptrace.h, not in md header files.
Protect vector functions/variables with _KERNEL.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/include/reg.h | 5 | ||||
-rw-r--r-- | sys/arch/powerpc/powerpc/vm_machdep.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/reg.h b/sys/arch/powerpc/include/reg.h index 6cdf7067053..2ca9666b694 100644 --- a/sys/arch/powerpc/include/reg.h +++ b/sys/arch/powerpc/include/reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: reg.h,v 1.4 2001/11/13 14:31:52 drahn Exp $ */ +/* $OpenBSD: reg.h,v 1.5 2001/12/17 03:19:01 drahn Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -66,11 +66,12 @@ struct vreg { u_int32_t vrsave; }; -int process_read_regs __P((struct proc *p, struct reg *regs)); +#ifdef _KERNEL #ifdef PPC_VECTOR_SUPPORTED void save_vec(struct proc *); void enable_vec(struct proc *); extern struct proc *ppc_vecproc; extern struct pool ppc_vecpl; #endif /* PPC_VECTOR_SUPPORTED */ +#endif /* _KERNEL */ #endif /* !_POWERPC_REG_H_ */ diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c index c377c226837..e8e7ba2df05 100644 --- a/sys/arch/powerpc/powerpc/vm_machdep.c +++ b/sys/arch/powerpc/powerpc/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.28 2001/12/08 02:24:07 art Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.29 2001/12/17 03:19:01 drahn Exp $ */ /* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */ /* @@ -39,6 +39,7 @@ #include <sys/signalvar.h> #include <sys/user.h> #include <sys/vnode.h> +#include <sys/ptrace.h> #include <uvm/uvm_extern.h> |