diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-06 18:59:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-06 18:59:10 +0000 |
commit | 4fb7289361467a5745494a5c5bba4bd7c85a4508 (patch) | |
tree | 61c16a35f15c8f618235848662956ff20ee5a2b6 /sys/arch | |
parent | 914d9e50aa62dae90b86d568d3a2fd19d31a13ae (diff) |
Do not store the value of sp in struct clockframe, for nothing has a need
for it.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/landisk/landisk/intr.c | 5 | ||||
-rw-r--r-- | sys/arch/sh/include/cpu.h | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/landisk/landisk/intr.c b/sys/arch/landisk/landisk/intr.c index bb7648e965a..3c6f75806e6 100644 --- a/sys/arch/landisk/landisk/intr.c +++ b/sys/arch/landisk/landisk/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.12 2024/11/05 08:51:23 miod Exp $ */ +/* $OpenBSD: intr.c,v 1.13 2024/11/06 18:59:09 miod Exp $ */ /* $NetBSD: intr.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /*- @@ -110,9 +110,8 @@ intc_intr(int ssr, int spc, int ssp) case SH_INTEVT_TMU0_TUNI0: (void)_cpu_intr_resume(ih->ih_level); - cf.spc = spc; cf.ssr = ssr; - cf.ssp = ssp; + cf.spc = spc; if ((*ih->ih_func)(&cf) != 0) ih->ih_count.ec_count++; break; diff --git a/sys/arch/sh/include/cpu.h b/sys/arch/sh/include/cpu.h index 986428db805..f9eaee07c2b 100644 --- a/sys/arch/sh/include/cpu.h +++ b/sys/arch/sh/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.41 2024/11/05 08:51:23 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.42 2024/11/06 18:59:09 miod Exp $ */ /* $NetBSD: cpu.h,v 1.41 2006/01/21 04:24:12 uwe Exp $ */ /*- @@ -99,9 +99,8 @@ extern struct cpu_info cpu_info_store; * machine state in an opaque clockframe. */ struct clockframe { - int spc; /* program counter at time of interrupt */ int ssr; /* status register at time of interrupt */ - int ssp; /* stack pointer at time of interrupt */ + int spc; /* program counter at time of interrupt */ }; #define CLKF_USERMODE(cf) (!KERNELMODE((cf)->ssr)) |