Changeset 5265eea4 in mainline for boot/arch/arm32/src/mm.c
- Timestamp:
- 2015-10-28T18:17:27Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77a194c, ff381a7
- Parents:
- 0328987 (diff), 5783d10 (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
-
boot/arch/arm32/src/mm.c
r0328987 r5265eea4 143 143 pte->should_be_zero_1 = 0; 144 144 pte->access_permission_0 = PTE_AP_USER_NO_KERNEL_RW; 145 #if def PROCESSOR_ARCH_armv7_a145 #if defined(PROCESSOR_ARCH_armv6) || defined(PROCESSOR_ARCH_armv7_a) 146 146 /* 147 147 * Keeps this setting in sync with memory type attributes in: … … 152 152 pte->tex = section_cacheable(frame) ? 5 : 0; 153 153 pte->cacheable = section_cacheable(frame) ? 0 : 0; 154 pte->bufferable = section_cacheable(frame) ? 1 : 0;154 pte->bufferable = section_cacheable(frame) ? 1 : 1; 155 155 #else 156 pte->bufferable = 1;156 pte->bufferable = section_cacheable(frame); 157 157 pte->cacheable = section_cacheable(frame); 158 158 pte->tex = 0; … … 189 189 */ 190 190 uint32_t val = (uint32_t)boot_pt & TTBR_ADDR_MASK; 191 #if defined(PROCESSOR_ARCH_armv6) || defined(PROCESSOR_ARCH_armv7_a) 192 // FIXME: TTBR_RGN_WBWA_CACHE is unpredictable on ARMv6 191 193 val |= TTBR_RGN_WBWA_CACHE | TTBR_C_FLAG; 194 #endif 192 195 TTBR0_write(val); 193 196 }
Note:
See TracChangeset
for help on using the changeset viewer.