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