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


Ignore:
Timestamp:
2013-01-23T00:12:15Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b80d132
Parents:
c19808fd
Message:

arm32, boot: Rework boot time cache handling. Enable Icache early.

Dcache still hangs after jumping to kernel.

File:
1 edited

Legend:

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

    rc19808fd rbfb6576  
    5959        const unsigned long address = section << PTE_SECTION_SHIFT;
    6060        if (address >= BBXM_RAM_START && address < BBXM_RAM_END)
    61                 return 0;
     61                return 1;
    6262#endif
    6363        return 0;
     
    133133                "mcr p15, 0, r0, c3, c0, 0\n"
    134134               
    135 #ifdef PROCESSOR_ARCH_armv7_a
    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
    141 #endif
    142 
    143135                /* Current settings */
    144136                "mrc p15, 0, r0, c1, c0, 0\n"
     
    151143                 * It's safe for gta02 too because we turn the caches off
    152144                 * before switching to kernel. */
    153                 "ldr r1, =0x00001805\n"
     145                "ldr r1, =0x00001801\n"
    154146#elif defined(PROCESSOR_ARCH_armv7_a) | defined(PROCESSOR_ARCH_armv6)
    155147                /* Enable paging, data cache and branch prediction
Note: See TracChangeset for help on using the changeset viewer.