Changeset 2a77eaa2 in mainline


Ignore:
Timestamp:
2013-01-01T18:17:05Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f65b8e0c
Parents:
e55fcd2
Message:

arm32, boot: Drop l2 cache enabling. Add armv7 cache invalidate.

L2 Cache on CortexA8 is enabled by default, we can control it together with L1 data cache using C bit in sctlr.

File:
1 edited

Legend:

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

    re55fcd2 r2a77eaa2  
    134134               
    135135#ifdef PROCESSOR_ARCH_armv7_a
    136                 /* Read Auxiliary control register */
    137                 "mrc p15, 0, r0, c1, c0, 1\n"
    138                 /* Mask to enable L2 cache */
    139                 "ldr r1, =0x00000002\n"
    140                 "orr r0, r0, r1\n"
    141                 /* Store Auxiliary control register */
    142                 "mrc p15, 0, r0, c1, c0, 1\n"
     136                /* armv7 no longer requires cache entries to be invalid
     137                 * upon reset, do this manually */
     138                /* Invalidate ICache */
     139                "mcr p15, 0, r0, c7, c5, 6\n"
     140                //TODO: Invalidate data cache
    143141#endif
     142
    144143                /* Current settings */
    145144                "mrc p15, 0, r0, c1, c0, 0\n"
Note: See TracChangeset for help on using the changeset viewer.