diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-03-29 19:34:08 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-03-29 19:34:08 +0000 |
commit | 714246ebb18cf669ce9f18b957235b160d31a547 (patch) | |
tree | 113d4dfde61ef5e475715f639b31742051966f59 /sys/arch/sparc64/include | |
parent | 0b455547bf95424f5c740f665671dc9b89d549fd (diff) |
sparc64 StackGhost.
ok deraadt@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/pcb.h | 5 | ||||
-rw-r--r-- | sys/arch/sparc64/include/ptrace.h | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/pcb.h b/sys/arch/sparc64/include/pcb.h index a0f4e42f856..43d19b7bd64 100644 --- a/sys/arch/sparc64/include/pcb.h +++ b/sys/arch/sparc64/include/pcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcb.h,v 1.4 2003/06/02 23:27:56 millert Exp $ */ +/* $OpenBSD: pcb.h,v 1.5 2005/03/29 19:34:07 kettenis Exp $ */ /* $NetBSD: pcb.h,v 1.7 2000/12/29 17:12:05 eeh Exp $ */ /* @@ -136,6 +136,8 @@ struct pcb { char pcb_pil; /* %pil when switch() was called -- prolly not needed */ const char *lastcall; /* DEBUG -- name of last system call */ + u_int64_t pcb_wcookie; + /* the following MUST be aligned on a 64-bit boundary */ struct rwindow64 pcb_rw[PCB_MAXWIN]; /* saved windows */ }; @@ -149,6 +151,7 @@ struct pcb { struct md_coredump { struct trapframe64 md_tf; struct fpstate64 md_fpstate; + u_int64_t md_wcookie; }; #ifdef _KERNEL diff --git a/sys/arch/sparc64/include/ptrace.h b/sys/arch/sparc64/include/ptrace.h index 194d9521ecb..36de9393fc2 100644 --- a/sys/arch/sparc64/include/ptrace.h +++ b/sys/arch/sparc64/include/ptrace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.h,v 1.2 2003/06/02 23:27:56 millert Exp $ */ +/* $OpenBSD: ptrace.h,v 1.3 2005/03/29 19:34:07 kettenis Exp $ */ /* $NetBSD: ptrace.h,v 1.1.1.1 1998/06/20 04:58:52 eeh Exp $ */ /* @@ -48,3 +48,8 @@ #define PT_SETREGS (PT_FIRSTMACH + 1) #define PT_GETFPREGS (PT_FIRSTMACH + 2) #define PT_SETFPREGS (PT_FIRSTMACH + 3) +#define PT_WCOOKIE (PT_FIRSTMACH + 4) + +#ifdef _KERNEL +register_t process_get_wcookie(struct proc *p); +#endif |