Changes in kernel/arch/arm32/src/exception.c [a99a3d7:08a2007] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/exception.c
ra99a3d7 r08a2007 120 120 static void high_vectors(void) 121 121 { 122 uint32_t control_reg; 123 122 register uint32_t control_reg = 0; 123 124 #if defined(PROCESSOR_armv7) 125 asm volatile ( 126 "mrc p15, 0, %[control_reg], c1, c0" 127 : [control_reg] "=r" (control_reg) 128 ); 129 #elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5) 124 130 asm volatile ( 125 131 "mrc p15, 0, %[control_reg], c1, c1" 126 132 : [control_reg] "=r" (control_reg) 127 133 ); 134 #endif 128 135 129 136 /* switch on the high vectors bit */ 130 137 control_reg |= CP15_R1_HIGH_VECTORS_BIT; 131 138 139 #if defined(PROCESSOR_armv7) 140 asm volatile ( 141 "mcr p15, 0, %[control_reg], c1, c0" 142 :: [control_reg] "r" (control_reg) 143 ); 144 #elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5) 132 145 asm volatile ( 133 146 "mcr p15, 0, %[control_reg], c1, c1" 134 147 :: [control_reg] "r" (control_reg) 135 148 ); 149 #endif 136 150 } 137 151 #endif
Note:
See TracChangeset
for help on using the changeset viewer.