Changeset 9ea8a7ca in mainline for arch/sparc64/include/barrier.h
- Timestamp:
- 2006-02-02T12:47:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 758e065
- Parents:
- 4e147a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/barrier.h
r4e147a6 r9ea8a7ca 40 40 #define write_barrier() 41 41 42 /** Flush Instruction Memory . */42 /** Flush Instruction Memory instruction. */ 43 43 static inline void flush(void) 44 44 { 45 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. 46 * The FLUSH instruction takes address parameter. 47 * As such, it may trap if the address is not found in DTLB. 48 * However, JPS1 implementations are free to ignore the trap. 50 49 */ 51 __asm__ volatile ("flush %sp\n"); /* %sp is guaranteed to reference mapped memory */50 __asm__ volatile ("flush %sp\n"); 52 51 } 53 52 53 /** Memory Barrier instruction. */ 54 54 static inline void membar(void) 55 55 {
Note:
See TracChangeset
for help on using the changeset viewer.