Changeset 1a3a632 in mainline


Ignore:
Timestamp:
2013-01-01T11:48:19Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0acd339
Parents:
4a46ccc
Message:

arm32, boot: Merge Cortex-A8 and gta02 paths.

We enable caches and branch prediction on both.

File:
1 edited

Legend:

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

    r4a46ccc r1a3a632  
    142142                "mrc p15, 0, r0, c1, c0, 0\n"
    143143               
    144 #ifdef PROCESSOR_cortex_a8
     144#if defined(PROCESSOR_cortex_a8) | defined(MACHINE_gta02)
    145145                /* Mask to enable paging, I-cache D-cache and branch predict
    146146                 * See kernel/arch/arm32/include/regutils.h for bit values.
    147147                 * It's safe because Cortex-A8 implements IVIPT extension
    148                  * See Cortex-A8 TRM ch. 7.2.6 p. 7-4 (PDF 245) */
     148                 * See Cortex-A8 TRM ch. 7.2.6 p. 7-4 (PDF 245).
     149                 * It's safe for gta02 too because we turn the caches off
     150                 * before switching to kernel. */
    149151                "ldr r1, =0x00001805\n"
    150152#elif defined(PROCESSOR_ARCH_armv7_a) | defined(PROCESSOR_ARCH_armv6)
     
    152154                 * see arch/arm32/src/cpu/cpu.c for reasoning */
    153155                "ldr r1, =0x00000805\n"
    154 #elif defined(MACHINE_gta02)
    155                 /* Mask to enable paging (bit 0),
    156                    D-cache (bit 2), I-cache (bit 12) */
    157                 "ldr r1, =0x00001005\n"
    158156#else
    159157                /* Mask to enable paging and branch prediction */
Note: See TracChangeset for help on using the changeset viewer.