Changeset ae7d03c in mainline for boot/arch/arm32/src/mm.c
- Timestamp:
- 2018-05-10T13:39:19Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e8975278
- Parents:
- b277bef
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-10 07:38:12)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-10 13:39:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/mm.c
rb277bef rae7d03c 103 103 * 104 104 * @return 1 if the given section can be mapped as cacheable, 0 otherwise. 105 */105 */ 106 106 static inline int section_cacheable(pfn_t section) 107 107 { … … 203 203 */ 204 204 asm volatile ( 205 205 /* Behave as a client of domains */ 206 206 "ldr r0, =0x55555555\n" 207 207 "mcr p15, 0, r0, c3, c0, 0\n" 208 208 209 209 /* Current settings */ 210 210 "mrc p15, 0, r0, c1, c0, 0\n" 211 211 212 213 214 215 216 217 212 /* Enable ICache, DCache, BPredictors and MMU, 213 * we disable caches before jumping to kernel 214 * so this is safe for all archs. 215 * Enable VMSAv6 the bit (23) is only writable on ARMv6. 216 * (and QEMU) 217 */ 218 218 #ifdef PROCESSOR_ARCH_armv6 219 219 "ldr r1, =0x00801805\n" … … 224 224 "orr r0, r0, r1\n" 225 225 226 227 228 226 /* Invalidate the TLB content before turning on the MMU. 227 * ARMv7-A Reference manual, B3.10.3 228 */ 229 229 "mcr p15, 0, r0, c8, c7, 0\n" 230 230 231 231 /* Store settings, enable the MMU */ 232 232 "mcr p15, 0, r0, c1, c0, 0\n" 233 233 ::: "r0", "r1"
Note:
See TracChangeset
for help on using the changeset viewer.