Changeset 6c5c2f3 in rtems
- Timestamp:
- 05/12/14 07:23:51 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- fa0a9a18
- Parents:
- 64a04ac
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/qoriq/include/bsp.h
r64a04ac r6c5c2f3 60 60 #define RTEMS_BSP_NETWORK_DRIVER_NAME4 "intercom1" 61 61 62 void qoriq_secondary_cpu_initialize(void);63 64 62 #ifdef __cplusplus 65 63 } -
c/src/lib/libbsp/powerpc/qoriq/start/start.S
r64a04ac r6c5c2f3 209 209 LA r13, _SDA_BASE_ 210 210 211 b qoriq_secondary_cpu_initialize211 b bsp_start_on_secondary_processor 212 212 213 213 b twiddle -
c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c
r64a04ac r6c5c2f3 23 23 #include <bsp/qoriq.h> 24 24 #include <bsp/vectors.h> 25 #include <bsp/bootcard.h> 25 26 #include <bsp/irq-generic.h> 26 27 #include <bsp/linker-symbols.h> … … 108 109 } 109 110 110 void qoriq_secondary_cpu_initialize(void)111 void bsp_start_on_secondary_processor(void) 111 112 { 112 113 const Per_CPU_Control *second_cpu = _Per_CPU_Get_by_index(1); -
c/src/lib/libbsp/sparc/leon3/include/leon.h
r64a04ac r6c5c2f3 328 328 int apbuart_inbyte_nonblocking(struct apbuart_regs *regs); 329 329 330 /**331 * @brief Initializes a secondary processor.332 *333 * @param[in] cpu The processor executing this function.334 */335 void leon3_secondary_cpu_initialize(uint32_t cpu);336 337 330 void leon3_cpu_counter_initialize(void); 338 331 -
c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c
r64a04ac r6c5c2f3 15 15 16 16 #include <bsp.h> 17 #include <bsp/bootcard.h> 17 18 #include <leon.h> 18 19 #include <rtems/bspIo.h> … … 34 35 } 35 36 36 void leon3_secondary_cpu_initialize(uint32_t cpu_index)37 void bsp_start_on_secondary_processor() 37 38 { 39 uint32_t cpu_index_self = _CPU_SMP_Get_current_processor(); 40 38 41 leon3_set_cache_control_register(0x80000F); 39 42 /* Unmask IPI interrupts at Interrupt controller for this CPU */ 40 LEON3_IrqCtrl_Regs->mask[cpu_index ] |= 1U << LEON3_MP_IRQ;43 LEON3_IrqCtrl_Regs->mask[cpu_index_self] |= 1U << LEON3_MP_IRQ; 41 44 42 45 _SMP_Start_multitasking_on_secondary_processor(); -
c/src/lib/libbsp/sparc/shared/start/start.S
r64a04ac r6c5c2f3 242 242 mov %sp, %fp ! set frame pointer 243 243 244 call SYM( leon3_secondary_cpu_initialize) ! does not return244 call SYM(bsp_start_on_secondary_processor) ! does not return 245 245 sub %sp, CPU_MINIMUM_STACK_FRAME_SIZE, %sp 246 246 ba SYM(bsp_reset) ! just in case -
testsuites/smptests/smpfatal08/init.c
r64a04ac r6c5c2f3 21 21 #include <rtems/score/smpimpl.h> 22 22 23 #include <bsp/bootcard.h> 24 23 25 #include <assert.h> 24 26 #include <stdlib.h> … … 31 33 */ 32 34 33 #if defined(__PPC__) 34 void qoriq_secondary_cpu_initialize(void) 35 void bsp_start_on_secondary_processor(void) 35 36 { 36 37 /* Provided to avoid multiple definitions of the CPU SMP support functions */ 37 38 } 38 #endif39 40 #if defined(__sparc__)41 void leon3_secondary_cpu_initialize(uint32_t cpu_index)42 {43 (void) cpu_index;44 45 /* Provided to avoid multiple definitions of the CPU SMP support functions */46 }47 #endif48 39 49 40 uint32_t _CPU_SMP_Initialize(void)
Note: See TracChangeset
for help on using the changeset viewer.