Changeset caf2cbd in rtems


Ignore:
Timestamp:
Aug 16, 2016, 5:49:41 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
6da06c5
Parents:
13c985c
git-author:
Chris Johns <chrisj@…> (08/16/16 05:49:41)
git-committer:
Chris Johns <chrisj@…> (09/01/16 01:11:09)
Message:

arm/xilinx_zynq: Start the second core when an SMP build.

Location:
c/src/lib/libbsp/arm/xilinx-zynq/startup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/xilinx-zynq/startup/bspsmp.c

    r13c985c rcaf2cbd  
    1515#include <rtems/score/smpimpl.h>
    1616
     17extern void _start(void);
     18
    1719bool _CPU_SMP_Start_processor(uint32_t cpu_index)
    1820{
     21  /*
     22   * Enable the second CPU.
     23   */
     24  if (cpu_index != 0) {
     25    volatile uint32_t* const kick_address = (uint32_t*) 0xfffffff0UL;
     26    _ARM_Data_synchronization_barrier();
     27    _ARM_Instruction_synchronization_barrier();
     28    *kick_address = (uint32_t) _start;
     29    _ARM_Data_synchronization_barrier();
     30    _ARM_Instruction_synchronization_barrier();
     31    _ARM_Send_event();
     32  }
     33
    1934  /*
    2035   * Wait for secondary processor to complete its basic initialization so that
  • c/src/lib/libbsp/arm/xilinx-zynq/startup/bspstartmmu.c

    r13c985c rcaf2cbd  
    2323zynq_mmu_config_table[] = {
    2424  ARMV7_CP15_START_DEFAULT_SECTIONS,
     25#if defined(RTEMS_SMP)
     26  {
     27    .begin = 0xffff0000U,
     28    .end = 0xffffffffU,
     29    .flags = ARMV7_MMU_DEVICE
     30  },
     31#endif
    2532  {
    2633    .begin = 0xe0000000U,
Note: See TracChangeset for help on using the changeset viewer.