Changeset a4fa007b in rtems


Ignore:
Timestamp:
Jun 20, 2016, 6:03:18 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
40b80d86
Parents:
bc47ec1c
git-author:
Sebastian Huber <sebastian.huber@…> (06/20/16 06:03:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/20/16 06:11:16)
Message:

bsp/leon3: Use sysinit for amba_initialize()

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

Legend:

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

    rbc47ec1c ra4fa007b  
    1616#include <leon.h>
    1717#include <ambapp.h>
     18#include <rtems/sysinit.h>
    1819
    1920unsigned int leon3_timer_prescaler __attribute__((weak)) = 0;
     
    8687 */
    8788
    88 void amba_initialize(void)
     89static void amba_initialize(void)
    8990{
    9091  int icsel;
     
    158159#endif
    159160}
     161
     162RTEMS_SYSINIT_ITEM(
     163  amba_initialize,
     164  RTEMS_SYSINIT_BSP_START,
     165  RTEMS_SYSINIT_ORDER_FIRST
     166);
  • c/src/lib/libbsp/sparc/leon3/include/amba.h

    rbc47ec1c ra4fa007b  
    4242extern struct ambapp_bus ambapp_plb;
    4343
    44 void amba_initialize(void);
    45 
    4644#ifdef __cplusplus
    4745}
  • c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

    rbc47ec1c ra4fa007b  
    6767  LEON3_Cpu_Index = _LEON3_Get_current_processor();
    6868
    69   /* Scan AMBA Plug&Play and parse it into a RAM description (ambapp_plb),
    70    * find GPTIMER for bus frequency, find IRQ Controller and initialize
    71    * interrupt support
    72    */
    73   amba_initialize();
    7469  leon3_cpu_counter_initialize();
    7570
Note: See TracChangeset for help on using the changeset viewer.