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