diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-10-24 05:28:01 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-10-24 05:28:01 +0000 |
commit | e75e3b8b1d4ca596b6d9012dfdd7d2045e132685 (patch) | |
tree | 1f98ec1798e993773c154574bada08abace7477a /sys/arch/sh | |
parent | 48ac1c963a8432040dc5fc8754cc2e3c06a95952 (diff) |
Add a ci_intrdepth field to struct cpu_info for sh, and use it to implement
CLKF_INTR properly.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r-- | sys/arch/sh/include/cpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sh/include/cpu.h b/sys/arch/sh/include/cpu.h index e1bb2283c64..f55b9866a6c 100644 --- a/sys/arch/sh/include/cpu.h +++ b/sys/arch/sh/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.39 2024/06/09 21:15:29 jca Exp $ */ +/* $OpenBSD: cpu.h,v 1.40 2024/10/24 05:28:00 miod Exp $ */ /* $NetBSD: cpu.h,v 1.41 2006/01/21 04:24:12 uwe Exp $ */ /*- @@ -72,6 +72,7 @@ struct cpu_info { #endif int ci_want_resched; + int ci_intrdepth; struct clockqueue ci_queue; @@ -105,7 +106,7 @@ struct clockframe { #define CLKF_USERMODE(cf) (!KERNELMODE((cf)->ssr)) #define CLKF_PC(cf) ((cf)->spc) -#define CLKF_INTR(cf) 0 /* XXX */ +#define CLKF_INTR(cf) (curcpu()->ci_intrdepth > 1) /* * This is used during profiling to integrate system time. It can safely |