arch_atomic.h revision 3805f722
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
12static inline void
13memory_read_barrier_inline(void)
14{
15	asm volatile ("nop;" : : : "memory");
16#warning M68k: check memory_read_barrier_inline (FNOP ?)
17}
18
19
20static inline void
21memory_write_barrier_inline(void)
22{
23	asm volatile ("nop;" : : : "memory");
24#warning M68k: check memory_write_barrier_inline (FNOP ?)
25}
26
27
28static inline void
29memory_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