xref: /haiku/headers/private/kernel/arch/m68k/arch_atomic.h (revision 71452e98334eaac603bf542d159e24788a46bebb)
1 /*
2  * Copyright 2014, Paweł Dziepak, pdziepak@quarnos.org.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		François Revol <revol@free.fr>
7  */
8 #ifndef _KERNEL_ARCH_M68K_ATOMIC_H
9 #define _KERNEL_ARCH_M68K_ATOMIC_H
10 
11 
12 static inline void
13 memory_read_barrier_inline(void)
14 {
15 	asm volatile ("nop;" : : : "memory");
16 #warning M68k: check memory_read_barrier_inline (FNOP ?)
17 }
18 
19 
20 static inline void
21 memory_write_barrier_inline(void)
22 {
23 	asm volatile ("nop;" : : : "memory");
24 #warning M68k: check memory_write_barrier_inline (FNOP ?)
25 }
26 
27 
28 static inline void
29 memory_full_barrier_inline(void)
30 {
31 	asm volatile ("nop;" : : : "memory");
32 #warning M68k: check memory_full_barrier_inline (FNOP ?)
33 }
34 
35 
36 #define memory_read_barrier memory_read_barrier_inline
37 #define memory_write_barrier memory_write_barrier_inline
38 #define memory_full_barrier memory_full_barrier_inline
39 
40 
41 #endif	// _KERNEL_ARCH_M68K_ATOMIC_H
42