From 1f2c9f3b849f86c4a98a5bf95644940e82db9b94 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 29 Nov 2008 05:16:14 +0000 Subject: [PATCH] Unbreak mips build by taking first WAG at mb(), wmb() and rmb(). The latter two are likely pessimal... --- sys/mips/include/atomic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/mips/include/atomic.h b/sys/mips/include/atomic.h index 8f0190aed282..9f800cd1d211 100644 --- a/sys/mips/include/atomic.h +++ b/sys/mips/include/atomic.h @@ -51,6 +51,10 @@ mips_sync(void) : : : "memory"); } +#define mb() mips_sync() +#define wmb() mips_sync() +#define rmb() mips_sync() + /* * Various simple arithmetic on memory which is atomic in the presence * of interrupts and SMP safe.