diff options
author | imp <imp@FreeBSD.org> | 2008-11-29 05:16:14 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-11-29 05:16:14 +0000 |
commit | 136e1c3d6aa8402c7ad99d1dce8f3f079be201c3 (patch) | |
tree | 4a7d2be990f4ecf384d1442a7039c33d4977a5c1 /sys/mips | |
parent | 85bc384554a99df3b864546d182e37b71fa7b881 (diff) | |
download | FreeBSD-src-136e1c3d6aa8402c7ad99d1dce8f3f079be201c3.zip FreeBSD-src-136e1c3d6aa8402c7ad99d1dce8f3f079be201c3.tar.gz |
Unbreak mips build by taking first WAG at mb(), wmb() and rmb(). The
latter two are likely pessimal...
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/include/atomic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/mips/include/atomic.h b/sys/mips/include/atomic.h index 8f0190a..9f800cd 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. |