From e8c48788cc3f49d5416550db1324cf9ebaafd352 Mon Sep 17 00:00:00 2001 From: miod Date: Thu, 8 Aug 2024 13:56:00 +0000 Subject: [PATCH] Make user ci_flags is declared volatile. --- sys/arch/m88k/include/cpu.h | 4 ++-- sys/arch/mips64/include/cpu.h | 4 ++-- 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 -- 2.20.1