Changes in kernel/arch/arm32/src/cpu/cpu.c [ae7d03c:7c3fb9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/cpu/cpu.c
rae7d03c r7c3fb9b 147 147 /* Unaligned access is supported on armv6+ */ 148 148 #if defined(PROCESSOR_ARCH_armv7_a) | defined(PROCESSOR_ARCH_armv6) 149 /* Enable unaligned access, RAZ/WI prior to armv6 149 /* 150 * Enable unaligned access, RAZ/WI prior to armv6 150 151 * switchable on armv6, RAO/WI writes on armv7, 151 152 * see ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition 152 * L.3.1 (p. 2456) */ 153 * L.3.1 (p. 2456) 154 */ 153 155 control_reg |= SCTLR_UNALIGNED_EN_FLAG; 154 /* Disable alignment checks, this turns unaligned access to undefined, 155 * unless U bit is set. */ 156 /* 157 * Disable alignment checks, this turns unaligned access to undefined, 158 * unless U bit is set. 159 */ 156 160 control_reg &= ~SCTLR_ALIGN_CHECK_EN_FLAG; 157 /* Enable caching, On arm prior to armv7 there is only one level 161 /* 162 * Enable caching, On arm prior to armv7 there is only one level 158 163 * of caches. Data cache is coherent. 159 164 * "This means that the behavior of accesses from the same observer to … … 169 174 #endif 170 175 #ifdef PROCESSOR_ARCH_armv7_a 171 /* ICache coherency is elaborated on in barrier.h. 176 /* 177 * ICache coherency is elaborated on in barrier.h. 172 178 * VIPT and PIPT caches need maintenance only on code modify, 173 179 * so it should be safe for general use.
Note:
See TracChangeset
for help on using the changeset viewer.