Rev 990 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 990 | Rev 1267 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __ppc32_BARRIER_H__ |
29 | #ifndef __ppc32_BARRIER_H__ |
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() __asm__ volatile ("sync" ::: "memory") |
35 | #define memory_barrier() asm volatile ("sync" ::: "memory") |
36 | #define read_barrier() __asm__ volatile ("sync" ::: "memory") |
36 | #define read_barrier() asm volatile ("sync" ::: "memory") |
37 | #define write_barrier() __asm__ volatile ("eieio" ::: "memory") |
37 | #define write_barrier() asm volatile ("eieio" ::: "memory") |
38 | 38 | ||
39 | #endif |
39 | #endif |