haiku/headers/private/kernel/arch/m68k/arch_atomic.h

42 lines
908 B
C
Raw Normal View History

2016-07-20 19:59:10 +03:00
/*
* Copyright 2014, Paweł Dziepak, pdziepak@quarnos.org.
* Distributed under the terms of the MIT License.
*
* Authors:
* François Revol <revol@free.fr>
*/
#ifndef _KERNEL_ARCH_M68K_ATOMIC_H
#define _KERNEL_ARCH_M68K_ATOMIC_H
static inline void
memory_read_barrier_inline(void)
{
asm volatile ("nop;" : : : "memory");
#warning M68k: check memory_read_barrier_inline (FNOP ?)
}
static inline void
memory_write_barrier_inline(void)
{
asm volatile ("nop;" : : : "memory");
#warning M68k: check memory_write_barrier_inline (FNOP ?)
}
static inline void
memory_full_barrier_inline(void)
{
asm volatile ("nop;" : : : "memory");
#warning M68k: check memory_full_barrier_inline (FNOP ?)
}
#define memory_read_barrier memory_read_barrier_inline
#define memory_write_barrier memory_write_barrier_inline
#define memory_full_barrier memory_full_barrier_inline
#endif // _KERNEL_ARCH_M68K_ATOMIC_H