Changeset 4c927c79 in rtems


Ignore:
Timestamp:
Jun 21, 2016, 7:10:28 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9460333e
Parents:
7222a65
git-author:
Sebastian Huber <sebastian.huber@…> (06/21/16 07:10:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/21/16 13:54:18)
Message:

bsp/leon3: Fix LEON3_Cpu_Index initialization

Location:
c/src/lib/libbsp/sparc/leon3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/amba/amba.c

    r7222a65 r4c927c79  
    163163  amba_initialize,
    164164  RTEMS_SYSINIT_BSP_START,
    165   RTEMS_SYSINIT_ORDER_FIRST
     165  RTEMS_SYSINIT_ORDER_SECOND
    166166);
  • c/src/lib/libbsp/sparc/leon3/console/printk_support.c

    r7222a65 r4c927c79  
    8181  bsp_debug_uart_init,
    8282  RTEMS_SYSINIT_BSP_START,
    83   RTEMS_SYSINIT_ORDER_THIRD
     83  RTEMS_SYSINIT_ORDER_FOURTH
    8484);
    8585
  • c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

    r7222a65 r4c927c79  
    2020#include <leon.h>
    2121#include <bsp/bootcard.h>
     22#include <rtems/sysinit.h>
    2223
    2324#if defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING)
     
    5960  CPU_SPARC_HAS_SNOOPING = set_snooping();
    6061
     62  leon3_cpu_counter_initialize();
     63}
     64
     65static void leon3_cpu_index_init(void)
     66{
    6167  /* Get the LEON3 CPU index, normally 0, but for MP systems we do
    6268   * _not_ assume that this is CPU0. One may run another OS on CPU0
     
    6571   */
    6672  LEON3_Cpu_Index = _LEON3_Get_current_processor();
     73}
    6774
    68   leon3_cpu_counter_initialize();
    69 }
     75RTEMS_SYSINIT_ITEM(
     76  leon3_cpu_index_init,
     77  RTEMS_SYSINIT_BSP_START,
     78  RTEMS_SYSINIT_ORDER_FIRST
     79);
Note: See TracChangeset for help on using the changeset viewer.