Changeset 7bf9217 in mainline
- Timestamp:
- 2013-08-08T20:59:02Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e93bb24
- Parents:
- 15187c3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/mm.c
r15187c3 r7bf9217 147 147 * set_ptl0_addr (kernel/arch/arm32/include/arch/mm/page.h) 148 148 */ 149 //TODO: Use write-back write-allocate caches 150 pte->tex = section_cacheable(frame) ? 6 : 0; 151 pte->bufferable = section_cacheable(frame) ? 0 : 0; 152 pte->cacheable = section_cacheable(frame) ? 1 : 0; 149 pte->tex = section_cacheable(frame) ? 5 : 0; 150 pte->cacheable = section_cacheable(frame) ? 0 : 0; 151 pte->bufferable = section_cacheable(frame) ? 1 : 0; 153 152 #else 154 153 pte->bufferable = 1; … … 184 183 */ 185 184 uint32_t val = (uint32_t)boot_pt & TTBR_ADDR_MASK; 186 val |= TTBR_RGN_W T_CACHE | TTBR_C_FLAG;185 val |= TTBR_RGN_WBWA_CACHE | TTBR_C_FLAG; 187 186 TTBR0_write(val); 188 187 } -
kernel/arch/arm32/include/arch/mm/page.h
r15187c3 r7bf9217 154 154 { 155 155 uint32_t val = (uint32_t)pt & TTBR_ADDR_MASK; 156 val |= TTBR_RGN_W T_CACHE | TTBR_C_FLAG;156 val |= TTBR_RGN_WBWA_CACHE | TTBR_C_FLAG; 157 157 TTBR0_write(val); 158 158 } -
kernel/arch/arm32/include/arch/mm/page_armv6.h
r15187c3 r7bf9217 265 265 * set_ptl0_addr (kernel/arch/arm32/include/arch/mm/page.h) 266 266 */ 267 //TODO: Use writeback, write-allocate caches 268 p->tex = 6; 269 p->cacheable = 1; 270 p->bufferable = 0; 267 p->tex = 5; 268 p->cacheable = 0; 269 p->bufferable = 1; 271 270 } else { 272 271 /*
Note:
See TracChangeset
for help on using the changeset viewer.