Changeset 5fcd537 in mainline for kernel/arch/arm32/include/barrier.h
- Timestamp:
- 2013-01-19T02:25:08Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bad1f53
- Parents:
- ae86f89 (diff), 660e8fa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/barrier.h
rae86f89 r5fcd537 39 39 /* 40 40 * TODO: implement true ARM memory barriers for macros below. 41 * ARMv6 introduced user access of the following commands: 42 * • Prefetch flush 43 * • Data synchronization barrier 44 * • Data memory barrier 45 * • Clean and prefetch range operations. 46 * ARM Architecture Reference Manual version I ch. B.3.2.1 p. B3-4 41 47 */ 42 48 #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") … … 88 94 */ 89 95 90 /* Available on both all supported arms, 96 #ifdef PROCESSOR_ARCH_armv7_a 97 #define smc_coherence(a) asm volatile ( "isb" ::: "memory") 98 #define smc_coherence_block(a, l) smc_coherence(a) 99 #else 100 /* Available on all supported arms, 91 101 * invalidates entire ICache so the written value does not matter. */ 102 //TODO might be PL1 only on armv5 - 92 103 #define smc_coherence(a) asm volatile ( "mcr p15, 0, r0, c7, c5, 0") 93 104 #define smc_coherence_block(a, l) smc_coherence(a) 105 #endif 94 106 95 107
Note:
See TracChangeset
for help on using the changeset viewer.