Define mb(), rmb() and wmb() for real.

This commit is contained in:
Marcel Moolenaar 2008-11-22 06:56:49 +00:00
parent db7f0b974f
commit ff8c51cf3e

View File

@ -29,9 +29,9 @@
#ifndef _MACHINE_ATOMIC_H_
#define _MACHINE_ATOMIC_H_
#define mb()
#define wmb()
#define rmb()
#define mb() __asm __volatile("mf")
#define wmb() mb()
#define rmb() mb()
/*
* Various simple arithmetic on memory which is atomic in the presence