Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/asm.S

    re93bb24 r24bead17  
    5656jump_to_kernel:
    5757        #
     58        # TODO
    5859        # Make sure that the I-cache, D-cache and memory are mutually coherent
    5960        # before passing control to the copied code.
     
    6768#define CP15_C1_BP              11
    6869#define CP15_C1_DC              2
    69 
    70 
    71 #ifndef PROCESSOR_ARCH_armv7_a
     70        # Disable I-cache and D-cache before the kernel is started.
    7271        mrc     p15, 0, r4, c1, c0, 0
    73        
    74         # D-cache before the kernel is started.
    7572        bic     r4, r4, #(1 << CP15_C1_DC)
    76 
    77         # Disable I-cache and Branche predictors.
    7873        bic     r4, r4, #(1 << CP15_C1_IC)
    7974        bic     r4, r4, #(1 << CP15_C1_BP)
    80        
    8175        mcr     p15, 0, r4, c1, c0, 0
    82 #endif
    83 
    8476
    8577       
     
    8981#else
    9082        #cp15 dsb, r4 is ignored (should be zero)
    91         mov r4, #0
    9283        mcr p15, 0, r4, c7, c10, 4
    9384#endif
    9485       
    9586        # Clean ICache and BPredictors, r4 ignored (SBZ)
    96         mov r4, #0
    9787        mcr p15, 0, r4, c7, c5, 0
    9888        nop
Note: See TracChangeset for help on using the changeset viewer.