arm: Rework hrev46863 to use gcc built-in

* Those calls were indeed v7+ only, and our toolchain
  is v6.
This commit is contained in:
Alexander von Gluck IV 2014-02-12 23:34:08 -06:00
parent 92b2e03d0d
commit 8018e8fa91

View File

@ -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();
}