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