Changeset 7bf9217 in mainline for boot/arch/arm32/src/mm.c


Ignore:
Timestamp:
2013-08-08T20:59:02Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e93bb24
Parents:
15187c3
Message:

armv7: Enable Write back write allocate caches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/mm.c

    r15187c3 r7bf9217  
    147147         * set_ptl0_addr (kernel/arch/arm32/include/arch/mm/page.h)
    148148         */
    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;
    153152#else
    154153        pte->bufferable = 1;
     
    184183         */
    185184        uint32_t val = (uint32_t)boot_pt & TTBR_ADDR_MASK;
    186         val |= TTBR_RGN_WT_CACHE | TTBR_C_FLAG;
     185        val |= TTBR_RGN_WBWA_CACHE | TTBR_C_FLAG;
    187186        TTBR0_write(val);
    188187}
Note: See TracChangeset for help on using the changeset viewer.