summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-08-07 22:18:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-08-07 22:18:08 +0000
commit554ced2812aefc9196d6374d548a3d0b91cd4526 (patch)
treecc45d084afb7c809e83f1b7b89b48841206ff008 /sys/arch/mvme88k
parenta6604f85aa8a932171dc60099229f6e646446a88 (diff)
Sprinkle a few Holy Volatiles (tm).
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/include/asm_macro.h4
-rw-r--r--sys/arch/mvme88k/mvme88k/locore_c_routines.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/include/asm_macro.h b/sys/arch/mvme88k/include/asm_macro.h
index e34517f07a3..e5f340ae8ff 100644
--- a/sys/arch/mvme88k/include/asm_macro.h
+++ b/sys/arch/mvme88k/include/asm_macro.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm_macro.h,v 1.12 2001/07/26 22:30:21 miod Exp $ */
+/* $OpenBSD: asm_macro.h,v 1.13 2001/08/07 22:18:04 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -118,7 +118,7 @@ static __inline__ unsigned long stack_pointer(void)
*/
static __inline__ unsigned ff1(register unsigned val)
{
- __asm__ ("ff1 %0, %0" : "=r" (val) : "0" (val));
+ __asm__ __volatile__ ("ff1 %0, %0" : "=r" (val) : "0" (val));
return val;
}
diff --git a/sys/arch/mvme88k/mvme88k/locore_c_routines.c b/sys/arch/mvme88k/mvme88k/locore_c_routines.c
index 3215391e778..a64e663238d 100644
--- a/sys/arch/mvme88k/mvme88k/locore_c_routines.c
+++ b/sys/arch/mvme88k/mvme88k/locore_c_routines.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore_c_routines.c,v 1.11 2001/05/20 05:53:10 miod Exp $ */
+/* $OpenBSD: locore_c_routines.c,v 1.12 2001/08/07 22:18:07 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -66,7 +66,7 @@
#define DMT_WORD 4
extern volatile unsigned int * int_mask_reg[MAX_CPUS]; /* in machdep.c */
-extern u_char *int_mask_level; /* in machdep.c */
+extern volatile u_char *int_mask_level; /* in machdep.c */
extern unsigned master_cpu; /* in cmmu.c */
static struct {