Changeset c52ed6b in mainline for arch/sparc64/include/barrier.h
- Timestamp:
- 2005-12-12T23:55:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bb8e45
- Parents:
- 0bd4f56d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/barrier.h
r0bd4f56d rc52ed6b 40 40 #define write_barrier() 41 41 42 #define flush() __asm__ volatile ("flush\n" ::: "memory") 42 /** Flush Instruction Memory. */ 43 static inline void flush(void) 44 { 45 /* 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 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.