Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2082 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #define KERN_mips32_BARRIER_H_ |
36 | #define KERN_mips32_BARRIER_H_ |
37 | 37 | ||
38 | /* |
38 | /* |
39 | * TODO: implement true MIPS memory barriers for macros below. |
39 | * TODO: implement true MIPS memory barriers for macros below. |
40 | */ |
40 | */ |
41 | #define CS_ENTER_BARRIER() __asm__ volatile ("" ::: "memory") |
41 | #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") |
42 | #define CS_LEAVE_BARRIER() __asm__ volatile ("" ::: "memory") |
42 | #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") |
43 | 43 | ||
44 | #define memory_barrier() __asm__ volatile ("" ::: "memory") |
44 | #define memory_barrier() asm volatile ("" ::: "memory") |
45 | #define read_barrier() __asm__ volatile ("" ::: "memory") |
45 | #define read_barrier() asm volatile ("" ::: "memory") |
46 | #define write_barrier() __asm__ volatile ("" ::: "memory") |
46 | #define write_barrier() asm volatile ("" ::: "memory") |
47 | 47 | ||
48 | #endif |
48 | #endif |
49 | 49 | ||
50 | /** @} |
50 | /** @} |
51 | */ |
51 | */ |