Changeset 296a80e in mainline for boot/arch/arm32/src/asm.S
- Timestamp:
- 2013-08-03T22:16:12Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67d02bb
- Parents:
- 9120b69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/asm.S
r9120b69 r296a80e 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) 73 #ifndef PROCESSOR_ARCH_armv7_a 76 77 #Disable I-cache and Branche predicotrs on non-armv7 74 78 bic r4, r4, #(1 << CP15_C1_IC) 75 79 bic r4, r4, #(1 << CP15_C1_BP) 80 81 mcr p15, 0, r4, c1, c0, 0 76 82 #endif 77 mcr p15, 0, r4, c1, c0, 0 83 78 84 79 85 … … 82 88 dsb 83 89 #else 90 andi r4, 0 84 91 #cp15 dsb, r4 is ignored (should be zero) 85 92 mcr p15, 0, r4, c7, c10, 4
Note:
See TracChangeset
for help on using the changeset viewer.