diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-15 17:23:32 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-15 17:23:32 +0000 |
commit | d1f1a61dd5ff0fa9b131709279be98b564ef1da0 (patch) | |
tree | 07ef9b0e99ad6f92c2c19392d1868eacd0009215 /sys/arch/sparc64/include/signal.h | |
parent | 42245bce1e1f756af97b6f11d1f6158972bd3d55 (diff) |
Decruftification.
We will never have a.out kernels.
We will never have 32-bit kernels.
We will never have sun4c, sun4 and sun4m support in the sparc64 kernels.
We don't need support old netbsd libc.
The cpu will never be identified as some of the sun4c and sun4m types.
We don't need the gazillion of fields in cpuinfo that the sparc port uses.
Just generally remove dead code.
This is just a first step in making this meess readable.
Diffstat (limited to 'sys/arch/sparc64/include/signal.h')
-rw-r--r-- | sys/arch/sparc64/include/signal.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/arch/sparc64/include/signal.h b/sys/arch/sparc64/include/signal.h index f273daf3029..237ba5b6191 100644 --- a/sys/arch/sparc64/include/signal.h +++ b/sys/arch/sparc64/include/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.3 2001/11/17 20:43:22 deraadt Exp $ */ +/* $OpenBSD: signal.h,v 1.4 2002/06/15 17:23:31 art Exp $ */ /* $NetBSD: signal.h,v 1.10 2001/05/09 19:50:49 kleink Exp $ */ /* @@ -65,23 +65,6 @@ typedef int sig_atomic_t; * * All machines must have an sc_onstack and sc_mask. */ -#if defined(__LIBC12_SOURCE__) || defined(_KERNEL) -struct sigcontext13 { - int sc_onstack; /* sigstack state to restore */ - int sc_mask; /* signal mask to restore (old style) */ - /* begin machine dependent portion */ - long sc_sp; /* %sp to restore */ - long sc_pc; /* pc to restore */ - long sc_npc; /* npc to restore */ -#ifdef __arch64__ - long sc_tstate; /* tstate to restore */ -#else - long sc_psr; /* psr portion to restore */ -#endif - long sc_g1; /* %g1 to restore */ - long sc_o0; /* %o0 to restore */ -}; -#endif /* __LIBC12_SOURCE__ || _KERNEL */ struct sigcontext { int sc_onstack; /* sigstack state to restore */ int __sc_mask13; /* signal mask to restore (old style) */ @@ -89,23 +72,11 @@ struct sigcontext { long sc_sp; /* %sp to restore */ long sc_pc; /* pc to restore */ long sc_npc; /* npc to restore */ -#ifdef __arch64__ long sc_tstate; /* tstate to restore */ -#else - long sc_psr; /* psr portion to restore */ -#endif long sc_g1; /* %g1 to restore */ long sc_o0; /* %o0 to restore */ int sc_mask; /* signal mask to restore (new style) */ }; -#else /* _LOCORE */ -/* XXXXX These values don't work for _LP64 */ -#define SC_SP_OFFSET 8 -#define SC_PC_OFFSET 12 -#define SC_NPC_OFFSET 16 -#define SC_PSR_OFFSET 20 -#define SC_G1_OFFSET 24 -#define SC_O0_OFFSET 28 #endif /* _LOCORE */ /* |