Changeset 54d87f2 in rtems
- Timestamp:
- 09/04/18 16:28:57 (6 years ago)
- Branches:
- 5, master
- Children:
- 2f61eb21
- Parents:
- 9a21fc7
- git-author:
- Sebastian Huber <sebastian.huber@…> (09/04/18 16:28:57)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (09/06/18 05:04:28)
- Location:
- bsps/powerpc
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
bsps/powerpc/beatnik/start/bspstart.c
r9a21fc7 r54d87f2 178 178 unsigned char *stack; 179 179 char *chpt; 180 uintptr_t intrStackStart;181 uintptr_t intrStackSize;182 180 183 181 Triv121PgTbl pt=0; … … 232 230 *((uint32_t *)stack) = 0; 233 231 234 /* 235 * Initialize the interrupt related settings 236 * SPRG0 = interrupt nesting level count 237 * SPRG1 = software managed IRQ stack 238 * 239 * This could be done latter (e.g in IRQ_INIT) but it helps to understand 240 * some settings below... 241 */ 242 intrStackStart = (uintptr_t)_Configuration_Interrupt_stack_area_begin; 243 intrStackSize = rtems_configuration_get_interrupt_stack_size(); 244 245 /* 246 * Initialize default raw exception handlers. See vectors/vectors_init.c 247 */ 248 ppc_exc_initialize(intrStackStart, intrStackSize); 232 ppc_exc_initialize(); 249 233 250 234 printk("CPU: %s\n", get_ppc_cpu_type_name(current_ppc_cpu)); -
bsps/powerpc/gen5200/start/bspstart.c
r9a21fc7 r54d87f2 154 154 /* Initialize exception handler */ 155 155 ppc_exc_cache_wb_check = 0; 156 ppc_exc_initialize( 157 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 158 rtems_configuration_get_interrupt_stack_size() 159 ); 156 ppc_exc_initialize(); 160 157 ppc_exc_set_handler(ASM_ALIGN_VECTOR, ppc_exc_alignment_handler); 161 158 162 /* Init alize interrupt support */159 /* Initialize interrupt support */ 163 160 bsp_interrupt_initialize(); 164 161 -
bsps/powerpc/gen83xx/start/bspstart.c
r9a21fc7 r54d87f2 114 114 ppc_exc_cache_wb_check = 0; 115 115 #endif 116 ppc_exc_initialize( 117 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 118 rtems_configuration_get_interrupt_stack_size() 119 ); 116 ppc_exc_initialize(); 120 117 121 118 /* Install default handler for the decrementer exception */ -
bsps/powerpc/haleakala/start/bspstart.c
r9a21fc7 r54d87f2 182 182 bsp_clicks_per_usec = 400; 183 183 184 /* 185 * Initialize default raw exception handlers. 186 */ 187 ppc_exc_initialize( 188 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 189 rtems_configuration_get_interrupt_stack_size() 190 ); 184 ppc_exc_initialize(); 191 185 192 186 /* -
bsps/powerpc/include/bsp/vectors.h
r9a21fc7 r54d87f2 301 301 ); 302 302 303 static inline void ppc_exc_initialize_interrupt_stack( 304 uintptr_t stack_begin, 305 uintptr_t stack_size 306 ) 303 static inline void ppc_exc_initialize_interrupt_stack(uintptr_t stack_begin) 307 304 { 305 uintptr_t stack_size = rtems_configuration_get_interrupt_stack_size(); 308 306 uintptr_t stack_end = stack_begin + stack_size; 309 307 uintptr_t stack_pointer = stack_end - PPC_MINIMUM_STACK_FRAME_SIZE; … … 327 325 void ppc_exc_initialize_with_vector_base( 328 326 uintptr_t interrupt_stack_begin, 329 uintptr_t interrupt_stack_size,330 327 void *vector_base 331 328 ); … … 344 341 * - the minimal prologue creation failed. 345 342 */ 346 static inline void ppc_exc_initialize( 347 uintptr_t interrupt_stack_begin, 348 uintptr_t interrupt_stack_size 349 ) 343 static inline void ppc_exc_initialize(void) 350 344 { 351 345 ppc_exc_initialize_with_vector_base( 352 interrupt_stack_begin, 353 interrupt_stack_size, 346 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 354 347 NULL 355 348 ); -
bsps/powerpc/motorola_powerpc/start/bspstart.c
r9a21fc7 r54d87f2 136 136 unsigned l2cr; 137 137 #endif 138 uintptr_t intrStackStart;139 uintptr_t intrStackSize;140 138 prep_t boardManufacturer; 141 139 motorolaBoard myBoard; … … 218 216 #endif 219 217 220 /* 221 * Initialize the interrupt related settings. 222 */ 223 intrStackStart = (uintptr_t)_Configuration_Interrupt_stack_area_begin; 224 intrStackSize = rtems_configuration_get_interrupt_stack_size(); 225 226 /* 227 * Initialize default raw exception handlers. 228 */ 229 ppc_exc_initialize(intrStackStart, intrStackSize); 218 ppc_exc_initialize(); 230 219 231 220 boardManufacturer = checkPrepBoardType(&residualCopy); … … 243 232 printk("Residuals are located at %x\n", (unsigned) &residualCopy); 244 233 printk("Additionnal boot options are %s\n", loaderParam); 245 printk("Software IRQ stack starts at %x with size %u\n", intrStackStart, intrStackSize);246 234 printk("-----------------------------------------\n"); 247 235 #endif -
bsps/powerpc/mpc55xxevb/start/bspstart.c
r9a21fc7 r54d87f2 89 89 bsp_clicks_per_usec = bsp_clock_speed / 1000000; 90 90 91 /* Initialize exceptions */92 91 ppc_exc_initialize_with_vector_base( 93 92 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 94 rtems_configuration_get_interrupt_stack_size(),95 93 mpc55xx_exc_vector_base 96 94 ); 97 98 /* Initialize interrupts */99 95 bsp_interrupt_initialize(); 100 96 -
bsps/powerpc/mpc8260ads/start/bspstart.c
r9a21fc7 r54d87f2 139 139 */ 140 140 141 /* Initialize exception handler */ 142 ppc_exc_initialize( 143 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 144 rtems_configuration_get_interrupt_stack_size() 145 ); 146 147 /* Initalize interrupt support */ 141 ppc_exc_initialize(); 148 142 bsp_interrupt_initialize(); 149 143 -
bsps/powerpc/mvme3100/start/bspstart.c
r9a21fc7 r54d87f2 211 211 { 212 212 unsigned char *stack; 213 uintptr_t intrStackStart;214 uintptr_t intrStackSize;215 213 char *chpt; 216 214 int i; … … 253 251 *((uint32_t*)stack) = 0; 254 252 255 /* 256 * Initialize the interrupt related settings. 257 */ 258 intrStackStart = (uintptr_t) _Configuration_Interrupt_stack_area_begin; 259 intrStackSize = rtems_configuration_get_interrupt_stack_size(); 260 261 /* 262 * Initialize default raw exception handlers. 263 */ 264 ppc_exc_initialize(intrStackStart, intrStackSize); 253 ppc_exc_initialize(); 265 254 266 255 printk("CPU 0x%x - rev 0x%x\n", myCpu, myCpuRevision); … … 269 258 printk("Additionnal boot options are %s\n", BSP_commandline_string); 270 259 printk("Initial system stack at %" PRIxPTR "\n", (uintptr_t) stack); 271 printk("Software IRQ stack starts at %x with size %u\n", intrStackStart, intrStackSize);272 260 #endif 273 261 -
bsps/powerpc/mvme5500/start/bspstart.c
r9a21fc7 r54d87f2 189 189 unsigned l3cr; 190 190 #endif 191 uintptr_t intrStackStart;192 uintptr_t intrStackSize;193 191 Triv121PgTbl pt=0; 194 192 … … 223 221 #endif 224 222 225 /* 226 * Initialize the interrupt related settings. 227 */ 228 intrStackStart = (uintptr_t) _Configuration_Interrupt_stack_area_begin; 229 intrStackSize = rtems_configuration_get_interrupt_stack_size(); 230 231 /* 232 * Initialize default raw exception handlers. 233 */ 234 ppc_exc_initialize(intrStackStart, intrStackSize); 223 ppc_exc_initialize(); 235 224 236 225 /* -
bsps/powerpc/psim/start/bspstart.c
r9a21fc7 r54d87f2 88 88 BSP_time_base_divisor = 1; 89 89 90 /*91 * Initialize default raw exception handlers.92 */93 90 ppc_exc_initialize_with_vector_base( 94 91 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 95 rtems_configuration_get_interrupt_stack_size(),96 92 (void *) 0xfff00000 97 93 ); -
bsps/powerpc/qemuppc/start/bspstart.c
r9a21fc7 r54d87f2 67 67 { 68 68 rtems_status_code sc = RTEMS_SUCCESSFUL; 69 uintptr_t intrStackStart;70 uintptr_t intrStackSize;71 69 72 70 /* … … 85 83 bsp_clicks_per_usec = BSP_bus_frequency; 86 84 87 /*88 * Initialize the interrupt related settings.89 */90 intrStackStart = (uintptr_t) _Configuration_Interrupt_stack_area_begin;91 intrStackSize = rtems_configuration_get_interrupt_stack_size();92 93 85 BSP_mem_size = (uint32_t )RamSize; 94 86 95 /* 96 * Initialize default raw exception handlers. 97 */ 98 ppc_exc_initialize(intrStackStart, intrStackSize); 87 ppc_exc_initialize(); 99 88 100 89 /* Install default handler for the decrementer exception */ -
bsps/powerpc/qoriq/start/bspsmp.c
r9a21fc7 r54d87f2 48 48 { 49 49 ppc_exc_initialize_interrupt_stack( 50 (uintptr_t) cpu_self->interrupt_stack_low, 51 rtems_configuration_get_interrupt_stack_size() 50 (uintptr_t) cpu_self->interrupt_stack_low 52 51 ); 53 52 -
bsps/powerpc/qoriq/start/bspstart.c
r9a21fc7 r54d87f2 114 114 115 115 ppc_exc_initialize_interrupt_stack( 116 (uintptr_t) interrupt_stack_begin, 117 rtems_configuration_get_interrupt_stack_size() 116 (uintptr_t) interrupt_stack_begin 118 117 ); 119 118 -
bsps/powerpc/shared/exceptions/ppc_exc_initialize.c
r9a21fc7 r54d87f2 83 83 void ppc_exc_initialize_with_vector_base( 84 84 uintptr_t interrupt_stack_begin, 85 uintptr_t interrupt_stack_size,86 85 void *vector_base 87 86 ) … … 111 110 } 112 111 113 ppc_exc_initialize_interrupt_stack(interrupt_stack_begin , interrupt_stack_size);112 ppc_exc_initialize_interrupt_stack(interrupt_stack_begin); 114 113 115 114 #ifndef PPC_EXC_CONFIG_BOOKE_ONLY -
bsps/powerpc/shared/start/bspgetworkarea.c
r9a21fc7 r54d87f2 27 27 uintptr_t work_area; 28 28 29 work_area = (uintptr_t)__rtems_end + 30 rtems_configuration_get_interrupt_stack_size(); 29 work_area = (uintptr_t)__rtems_end; 31 30 work_size = (uintptr_t)BSP_mem_size - work_area; 32 31 -
bsps/powerpc/t32mppc/start/bspstart.c
r9a21fc7 r54d87f2 50 50 51 51 ppc_exc_initialize_interrupt_stack( 52 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 53 rtems_configuration_get_interrupt_stack_size() 52 (uintptr_t) _Configuration_Interrupt_stack_area_begin 54 53 ); 55 54 -
bsps/powerpc/tqm8xx/start/bspstart.c
r9a21fc7 r54d87f2 144 144 bsp_clicks_per_usec = bsp_time_base_frequency / 1000000; 145 145 146 /* Initialize exception handler */ 147 ppc_exc_initialize( 148 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 149 rtems_configuration_get_interrupt_stack_size() 150 ); 151 152 /* Initalize interrupt support */ 146 ppc_exc_initialize(); 153 147 bsp_interrupt_initialize(); 154 148 -
bsps/powerpc/virtex/start/bspstart.c
r9a21fc7 r54d87f2 95 95 get_ppc_cpu_revision(); 96 96 97 /*98 * Initialize default raw exception handlers.99 */100 97 ppc_exc_initialize_with_vector_base( 101 98 (uintptr_t) _Configuration_Interrupt_stack_area_begin, 102 rtems_configuration_get_interrupt_stack_size(),103 99 virtex_exc_vector_base 104 100 ); -
bsps/powerpc/virtex4/start/bspstart.c
r9a21fc7 r54d87f2 142 142 void bsp_start(void) 143 143 { 144 uintptr_t intrStackStart;145 uintptr_t intrStackSize;146 147 144 ppc_cpu_id_t myCpu; 148 145 ppc_cpu_revision_t myCpuRevision; … … 169 166 bsp_clicks_per_usec = 350; 170 167 171 /* 172 * Initialize the interrupt related settings. 173 */ 174 intrStackStart = (uintptr_t) _Configuration_Interrupt_stack_area_begin; 175 intrStackSize = rtems_configuration_get_interrupt_stack_size(); 176 177 ppc_exc_initialize(intrStackStart, intrStackSize); 168 ppc_exc_initialize(); 178 169 179 170 /* Let the user know what parameters we were compiled with */ … … 181 172 "RAM: %p %p\n" 182 173 "RTEMS: %p\n" 183 "Interrupt Stack: 0x%08x 0x%x\n"184 174 "Workspace: %p %p\n" 185 175 "MsgArea: %p %p\n" … … 187 177 RamBase, RamSize, 188 178 __rtems_end, 189 intrStackStart, intrStackSize,190 179 WorkAreaBase, __bsp_ram_end, 191 180 MsgAreaBase, MsgAreaSize, -
bsps/powerpc/virtex5/start/bspstart.c
r9a21fc7 r54d87f2 156 156 void bsp_start(void) 157 157 { 158 uintptr_t intrStackStart;159 uintptr_t intrStackSize;160 161 158 ppc_cpu_id_t myCpu; 162 159 ppc_cpu_revision_t myCpuRevision; … … 188 185 bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000); 189 186 190 /* 191 * Initialize the interrupt related settings. 192 */ 193 intrStackStart = (uintptr_t)_Configuration_Interrupt_stack_area_begin; 194 intrStackSize = rtems_configuration_get_interrupt_stack_size(); 195 196 ppc_exc_initialize(intrStackStart, intrStackSize); 187 ppc_exc_initialize(); 197 188 198 189 /* Let the user know what parameters we were compiled with */ … … 200 191 "RAM: %p %p\n" 201 192 "RTEMS: %p\n" 202 "Interrupt Stack: 0x%08x 0x%x\n"203 193 "Workspace: %p %p\n" 204 194 "MsgArea: %p %p\n" … … 206 196 RamBase, RamSize, 207 197 __rtems_end, 208 intrStackStart, intrStackSize,209 198 WorkAreaBase, __bsp_ram_end, 210 199 MsgAreaBase, MsgAreaSize,
Note: See TracChangeset
for help on using the changeset viewer.