Changeset f7bb6d1 in mainline for boot/arch/arm32/src/asm.S
- Timestamp:
- 2013-09-17T19:51:20Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ac3d27
- Parents:
- 3efc35a (diff), ca62f86 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/asm.S
r3efc35a rf7bb6d1 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.