Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 1267 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 990
Line 30... Line 30...
30
#define __ppc32_BARRIER_H__
30
#define __ppc32_BARRIER_H__
31
 
31
 
32
#define CS_ENTER_BARRIER()  __asm__ volatile ("" ::: "memory")
32
#define CS_ENTER_BARRIER()  __asm__ volatile ("" ::: "memory")
33
#define CS_LEAVE_BARRIER()  __asm__ volatile ("" ::: "memory")
33
#define CS_LEAVE_BARRIER()  __asm__ volatile ("" ::: "memory")
34
 
34
 
35
#define memory_barrier()
35
#define memory_barrier() __asm__ volatile ("sync" ::: "memory")
36
#define read_barrier()
36
#define read_barrier() __asm__ volatile ("sync" ::: "memory")
37
#define write_barrier()
37
#define write_barrier() __asm__ volatile ("eieio" ::: "memory")
38
 
38
 
39
#endif
39
#endif