Changes in boot/arch/arm32/src/asm.S [24bead17:e93bb24] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/asm.S
r24bead17 re93bb24 56 56 jump_to_kernel: 57 57 # 58 # TODO59 58 # Make sure that the I-cache, D-cache and memory are mutually coherent 60 59 # before passing control to the copied code. … … 68 67 #define CP15_C1_BP 11 69 68 #define CP15_C1_DC 2 70 # Disable I-cache and D-cache before the kernel is started. 69 70 71 #ifndef PROCESSOR_ARCH_armv7_a 71 72 mrc p15, 0, r4, c1, c0, 0 73 74 # D-cache before the kernel is started. 72 75 bic r4, r4, #(1 << CP15_C1_DC) 76 77 # Disable I-cache and Branche predictors. 73 78 bic r4, r4, #(1 << CP15_C1_IC) 74 79 bic r4, r4, #(1 << CP15_C1_BP) 80 75 81 mcr p15, 0, r4, c1, c0, 0 82 #endif 83 76 84 77 85 … … 81 89 #else 82 90 #cp15 dsb, r4 is ignored (should be zero) 91 mov r4, #0 83 92 mcr p15, 0, r4, c7, c10, 4 84 93 #endif 85 94 86 95 # Clean ICache and BPredictors, r4 ignored (SBZ) 96 mov r4, #0 87 97 mcr p15, 0, r4, c7, c5, 0 88 98 nop
Note:
See TracChangeset
for help on using the changeset viewer.