Changeset 970aa80 in rtems


Ignore:
Timestamp:
Jun 12, 2014, 9:18:48 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
701dd96f
Parents:
4962d24d
git-author:
Sebastian Huber <sebastian.huber@…> (06/12/14 09:18:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/14 11:00:47)
Message:

bsp/realview-pbx-a9: Fix SMP startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/realview-pbx-a9/startup/bspstarthooks.c

    r4962d24d r970aa80  
    5656BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
    5757{
     58#ifdef RTEMS_SMP
     59  uint32_t cpu_id = arm_cortex_a9_get_multiprocessor_cpu_id();
     60
     61  /*
     62   * QEMU jumps to the entry point of the ELF file on all processors.  Prevent
     63   * a SMP_FATAL_MULTITASKING_START_ON_INVALID_PROCESSOR this way.
     64   */
     65  if ( cpu_id >= rtems_configuration_get_maximum_processors() ) {
     66    while (true) {
     67      _ARM_Wait_for_event();
     68    }
     69  }
     70#endif
     71
    5872  arm_a9mpcore_start_hook_0();
    5973}
Note: See TracChangeset for help on using the changeset viewer.