summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-01-01 00:05:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-01-01 00:05:05 +0000
commit3ae8051ff536fe90c82db94c04d2132e6a9b0b1b (patch)
tree5d76e3bbf217666033f149dbfac72a232e81d93d /sys/arch
parentb8e5e2bc0f7e0799f53d60513d861bcf0420dcc8 (diff)
Add a "memory" clobber to the flush_pipeline() assembly construct, to make sure
the compiler won't try to outsmart me.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m88k/include/asm_macro.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/asm_macro.h b/sys/arch/m88k/include/asm_macro.h
index 5678acfbef6..541d50f54da 100644
--- a/sys/arch/m88k/include/asm_macro.h
+++ b/sys/arch/m88k/include/asm_macro.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm_macro.h,v 1.7 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: asm_macro.h,v 1.8 2013/01/01 00:05:04 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -38,7 +38,7 @@
* Flush the data pipeline.
*/
#define flush_pipeline() \
- __asm__ __volatile__ ("tb1 0, r0, 0");
+ __asm__ __volatile__ ("tb1 0, r0, 0" ::: "memory");
/*
* Set the PSR.