Rev 569 | Rev 758 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 569 | Rev 613 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | 37 | ||
38 | #define memory_barrier() |
38 | #define memory_barrier() |
39 | #define read_barrier() |
39 | #define read_barrier() |
40 | #define write_barrier() |
40 | #define write_barrier() |
41 | 41 | ||
- | 42 | /** Flush Instruction Memory. */ |
|
- | 43 | static inline void flush(void) |
|
- | 44 | { |
|
- | 45 | /* |
|
42 | #define flush() __asm__ volatile ("flush\n" ::: "memory") |
46 | * The FLUSH instruction takes address parameter, |
- | 47 | * but JPS1 implementations are free to ignore it. |
|
- | 48 | * The only requirement is that it is a valid address |
|
- | 49 | * as it is passed to D-MMU. |
|
- | 50 | */ |
|
- | 51 | __asm__ volatile ("flush %sp\n"); /* %sp is guaranteed to reference mapped memory */ |
|
- | 52 | } |
|
43 | 53 | ||
44 | #endif |
54 | #endif |