Changes in boot/arch/arm32/src/asm.S [24bead17:ab63b04e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/asm.S
r24bead17 rab63b04e 60 60 # before passing control to the copied code. 61 61 # 62 63 #64 # r0 is kernel entry point65 # r1 is pointer to the bootinfo structure66 67 #define CP15_C1_IC 1268 #define CP15_C1_BP 1169 #define CP15_C1_DC 270 # Disable I-cache and D-cache before the kernel is started.71 mrc p15, 0, r4, c1, c0, 072 bic r4, r4, #(1 << CP15_C1_DC)73 bic r4, r4, #(1 << CP15_C1_IC)74 bic r4, r4, #(1 << CP15_C1_BP)75 mcr p15, 0, r4, c1, c0, 076 77 78 #Wait for the operations to complete79 #ifdef PROCESSOR_ARCH_armv7_a80 dsb81 #else82 #cp15 dsb, r4 is ignored (should be zero)83 mcr p15, 0, r4, c7, c10, 484 #endif85 86 # Clean ICache and BPredictors, r4 ignored (SBZ)87 mcr p15, 0, r4, c7, c5, 088 nop89 90 #Wait for the operations to complete91 #ifdef PROCESSOR_ARCH_armv7_a92 isb93 nop94 #else95 # cp15 isb96 mcr p15, 0, r4, c7, c5, 497 nop98 #endif99 62 mov pc, r0
Note:
See TracChangeset
for help on using the changeset viewer.