summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-08-08 13:56:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-08-08 13:56:01 +0000
commitd41f694d687d4b9b9ab427da44d99c19d0ba5d4e (patch)
treeaedb0a66ee45969c95b2282da8b6f98d44d48325 /sys/arch
parent99932338f0f780d5fb698a209a890e348f245e2d (diff)
Make user ci_flags is declared volatile.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m88k/include/cpu.h4
-rw-r--r--sys/arch/mips64/include/cpu.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/m88k/include/cpu.h b/sys/arch/m88k/include/cpu.h
index d3c37fc9070..37bc80a45ad 100644
--- a/sys/arch/m88k/include/cpu.h
+++ b/sys/arch/m88k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.80 2024/06/20 10:46:11 aoyama Exp $ */
+/* $OpenBSD: cpu.h,v 1.81 2024/08/08 13:56:00 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
@@ -89,7 +89,7 @@
struct pmap;
struct cpu_info {
- u_int ci_flags;
+ volatile u_int ci_flags;
#define CIF_ALIVE 0x01 /* cpu initialized */
#define CIF_PRIMARY 0x02 /* primary cpu */
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 6578a1bad4d..6523a899701 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.147 2024/06/09 21:15:29 jca Exp $ */
+/* $OpenBSD: cpu.h,v 1.148 2024/08/08 13:56:00 miod Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -186,7 +186,7 @@ struct cpu_info {
struct pmap *ci_curpmap;
uint ci_intrdepth; /* interrupt depth */
#ifdef MULTIPROCESSOR
- u_long ci_flags; /* flags; see below */
+ volatile u_long ci_flags; /* flags; see below */
#endif
volatile int ci_ddb;
#define CI_DDB_RUNNING 0