arm: Rework hrev46863 to use gcc built-in
* Those calls were indeed v7+ only, and our toolchain is v6.
This commit is contained in:
parent
92b2e03d0d
commit
8018e8fa91
@ -12,24 +12,21 @@
|
||||
static inline void
|
||||
memory_read_barrier_inline(void)
|
||||
{
|
||||
// TODO Only ArmV7+?
|
||||
asm volatile("dsb sy" : : : "memory");
|
||||
__sync_synchronize();
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
memory_write_barrier_inline(void)
|
||||
{
|
||||
// TODO Only ArmV7+?
|
||||
asm volatile("dsb sy" : : : "memory");
|
||||
__sync_synchronize();
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
memory_full_barrier_inline(void)
|
||||
{
|
||||
// TODO Only ArmV7+?
|
||||
asm volatile("dsb sy" : : : "memory");
|
||||
__sync_synchronize();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user