Use better arm memory barrier
This commit is contained in:
parent
b174b65819
commit
d5cd45a38d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245275
@ -86,6 +86,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/atomic.h>
|
||||
|
||||
#ifdef __sparc64__
|
||||
#include <dev/ofw/openfirm.h>
|
||||
@ -136,7 +137,7 @@ typedef u_int32_t u32;
|
||||
#elif defined __sparc64__
|
||||
#define MEMORY_BARRIER() __asm__ volatile("membar #Sync" : : : "memory")
|
||||
#elif defined __arm__
|
||||
#define MEMORY_BARRIER() __do_dmb()
|
||||
#define MEMORY_BARRIER() dmb()
|
||||
#else
|
||||
#error "Not supported platform"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user