From 554ced2812aefc9196d6374d548a3d0b91cd4526 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 7 Aug 2001 22:18:08 +0000 Subject: Sprinkle a few Holy Volatiles (tm). --- sys/arch/mvme88k/include/asm_macro.h | 4 ++-- sys/arch/mvme88k/mvme88k/locore_c_routines.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/mvme88k') 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 { -- cgit v1.2.3