diff options
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/sparc64/include/signal.h | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index 0ef44b2932f..0ca59053ace 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.78 2011/07/06 22:26:44 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.79 2012/12/02 07:03:31 guenther Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -238,6 +238,7 @@ extern void need_resched(struct cpu_info *); * This is used during profiling to integrate system time. */ #define PROC_PC(p) ((p)->p_md.md_tf->tf_pc) +#define PROC_STACK(p) ((p)->p_md.md_tf->tf_out[6] + (2048-1)) /* BIAS */ /* * Give a profiling tick to the current process when the user profiling diff --git a/sys/arch/sparc64/include/signal.h b/sys/arch/sparc64/include/signal.h index 2a67ba7cd71..0333dc1b733 100644 --- a/sys/arch/sparc64/include/signal.h +++ b/sys/arch/sparc64/include/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.9 2011/03/23 16:54:37 pirofti Exp $ */ +/* $OpenBSD: signal.h,v 1.10 2012/12/02 07:03:31 guenther Exp $ */ /* $NetBSD: signal.h,v 1.10 2001/05/09 19:50:49 kleink Exp $ */ /* @@ -56,11 +56,9 @@ typedef int sig_atomic_t; * execution of the signal handler. It is also made available * to the handler to allow it to restore state properly if * a non-standard exit is performed. - * - * All machines must have an sc_onstack and sc_mask. */ struct sigcontext { - int sc_onstack; /* sigstack state to restore */ + int __sc_unused; int __sc_mask13; /* signal mask to restore (old style) */ /* begin machine dependent portion */ long sc_sp; /* %sp to restore */ |