Changeset c4ccf26c in rtems


Ignore:
Timestamp:
Apr 17, 2018, 4:57:46 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0510cd50
Parents:
a884df3
git-author:
Sebastian Huber <sebastian.huber@…> (04/17/18 04:57:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/20/18 07:49:36)
Message:

bsps: Convert all bsp_predriver_hook()

Use RTEMS_SYSINIT_ITEM() instead.

Update #2408.

Files:
5 deleted
93 edited
2 moved

Legend:

Unmodified
Added
Removed
  • bsps/include/bsp/bootcard.h

    ra884df3 rc4ccf26c  
    5353
    5454void bsp_start(void);
    55 
    56 void bsp_predriver_hook(void);
    5755
    5856void bsp_reset(void);
  • bsps/m68k/mrm332/start/bspstart.c

    ra884df3 rc4ccf26c  
    1010#include <bsp.h>
    1111#include <bsp/bootcard.h>
     12#include <rtems/sysinit.h>
    1213
    1314extern void Spurious_Initialize(void);
    1415
    1516/*
    16  *  Call Spurious_Initialize in bsp_predriver_hook because
    17  *  bsp_predriver_hook is call after the _ISR_Vector_Table allocation
     17 * Must be called after the _ISR_Vector_Table allocation
    1818 */
    19 void bsp_predriver_hook(void)
     19RTEMS_SYSINIT_ITEM(
     20  Spurious_Initialize,
     21  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     22  RTEMS_SYSINIT_ORDER_MIDDLE
     23);
     24
     25void bsp_start(void)
    2026{
    21   Spurious_Initialize();
     27  /* Nothing to do */
    2228}
  • bsps/powerpc/motorola_powerpc/start/bspstart.c

    ra884df3 rc4ccf26c  
    2121#include <rtems/bspIo.h>
    2222#include <rtems/counter.h>
     23#include <rtems/sysinit.h>
    2324#include <bsp/consoleIo.h>
    2425#include <libcpu/spr.h>
     
    3132#include <libcpu/cpuIdent.h>
    3233#include <bsp/vectors.h>
     34#include <bsp/VME.h>
    3335#include <bsp/motorola.h>
    3436#include <rtems/powerpc/powerpc.h>
     
    375377#endif
    376378}
     379
     380RTEMS_SYSINIT_ITEM(
     381  BSP_vme_config,
     382  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     383  RTEMS_SYSINIT_ORDER_MIDDLE
     384);
  • bsps/powerpc/mvme3100/include/bsp.h

    ra884df3 rc4ccf26c  
    177177 */
    178178int BSP_i2c_initialize(void);
    179 #define BSP_PREDRIVER_I2C_INIT
    180179
    181180/* System Control Register */
  • bsps/shared/start/bootcard.c

    ra884df3 rc4ccf26c  
    5050);
    5151
    52 RTEMS_SYSINIT_ITEM(
    53   bsp_predriver_hook,
    54   RTEMS_SYSINIT_BSP_PRE_DRIVERS,
    55   RTEMS_SYSINIT_ORDER_MIDDLE
    56 );
    57 
    5852/*
    5953 *  This is the initialization framework routine that weaves together
  • bsps/sparc/erc32/start/bspstart.c

    ra884df3 rc4ccf26c  
    1313#include <bsp.h>
    1414#include <bsp/bootcard.h>
     15#include <rtems/sysinit.h>
    1516
    1617/*
    17  *  bsp_predriver_hook
    18  *
    19  *  BSP predriver hook. Called just before drivers are initialized.
    20  *  Is used to initialize shared interrupt handling.
     18 * Called just before drivers are initialized.  Is used to initialize shared
     19 * interrupt handling.
    2120 */
    22 void bsp_predriver_hook( void )
     21static void erc32_pre_driver_hook( void )
    2322{
    2423  bsp_spurious_initialize();
     
    2928  BSP_shared_interrupt_init();
    3029}
     30
     31RTEMS_SYSINIT_ITEM(
     32  erc32_pre_driver_hook,
     33  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     34  RTEMS_SYSINIT_ORDER_MIDDLE
     35);
     36
     37void bsp_start(void)
     38{
     39  /* Nothing to do */
     40}
  • c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am

    ra884df3 rc4ccf26c  
    8181# Shared
    8282librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    83 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    8483librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    8584librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/arm/atsam/Makefile.am

    ra884df3 rc4ccf26c  
    3737librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3838librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    39 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4039librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    4140librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/arm/beagle/Makefile.am

    ra884df3 rc4ccf26c  
    4242librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4343librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    44 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4544librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    4645librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/csb336/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += startup/bspstart.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
  • c/src/lib/libbsp/arm/csb337/Makefile.am

    ra884df3 rc4ccf26c  
    2525
    2626project_lib_LIBRARIES = librtemsbsp.a
     27librtemsbsp_a_SOURCES =
    2728
    2829# startup
    29 librtemsbsp_a_SOURCES = ../../shared/bsppredriverhook.c
    3030librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    3131librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/arm/edb7312/Makefile.am

    ra884df3 rc4ccf26c  
    1919# startup
    2020librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    21 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2221librtemsbsp_a_SOURCES += startup/bspstart.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
  • c/src/lib/libbsp/arm/gdbarmsim/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
  • c/src/lib/libbsp/arm/gumstix/Makefile.am

    ra884df3 rc4ccf26c  
    1818
    1919librtemsbsp_a_SOURCES =
    20 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2120librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2221librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/arm/imx/Makefile.am

    ra884df3 rc4ccf26c  
    3232librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3333librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    34 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3534librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    3635librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
  • c/src/lib/libbsp/arm/lm3s69xx/Makefile.am

    ra884df3 rc4ccf26c  
    3535librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3636librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    37 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3837librtemsbsp_a_SOURCES += ../../shared/cpucounterread.c
    3938librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
  • c/src/lib/libbsp/arm/lpc176x/Makefile.am

    ra884df3 rc4ccf26c  
    4444librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    46 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4746librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    4847librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    ra884df3 rc4ccf26c  
    5353librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    5454librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    55 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    5655librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    5756librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/lpc32xx/Makefile.am

    ra884df3 rc4ccf26c  
    4444librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    46 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4746librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    4847librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/arm/raspberrypi/Makefile.am

    ra884df3 rc4ccf26c  
    4040librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    4141librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    42 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4342librtemsbsp_a_SOURCES += ../../shared/cpucounterread.c
    4443librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
  • c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am

    ra884df3 rc4ccf26c  
    4141librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4242librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    43 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4443librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    4544librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/arm/rtl22xx/Makefile.am

    ra884df3 rc4ccf26c  
    2020
    2121# startup
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2423librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/arm/smdk2410/Makefile.am

    ra884df3 rc4ccf26c  
    2525librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    2626
    27 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2827librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2928librtemsbsp_a_SOURCES += ../../shared/cpucounterread.c
  • c/src/lib/libbsp/arm/stm32f4/Makefile.am

    ra884df3 rc4ccf26c  
    3434librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3535librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    36 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3736librtemsbsp_a_SOURCES += ../../shared/cpucounterread.c
    3837librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
  • c/src/lib/libbsp/arm/tms570/Makefile.am

    ra884df3 rc4ccf26c  
    4343librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4444librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    45 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4645librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    4746librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am

    ra884df3 rc4ccf26c  
    3939librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4040librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    41 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4241librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
    4342librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/bfin/TLL6527M/startup/bspstart.c

    ra884df3 rc4ccf26c  
    1717#include <bsp/interrupt.h>
    1818#include <libcpu/ebiuRegs.h>
     19#include <rtems/sysinit.h>
    1920
    2021const unsigned int dcplbs_table[16][2] = { 
     
    122123}
    123124
    124 /*
    125  *  bsp_predriver_hook
    126  */
    127 void bsp_predriver_hook(void)
    128 {
    129   bfin_interrupt_init();
    130 }
     125RTEMS_SYSINIT_ITEM(
     126  bfin_interrupt_init,
     127  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     128  RTEMS_SYSINIT_ORDER_MIDDLE
     129);
    131130
    132131void bsp_start( void )
  • c/src/lib/libbsp/bfin/bf537Stamp/startup/bspstart.c

    ra884df3 rc4ccf26c  
    2323#include <libcpu/mmuRegs.h>
    2424#include <libcpu/interrupt.h>
    25 
     25#include <rtems/sysinit.h>
    2626
    2727static bfin_mmu_config_t mmuRegions = {
     
    7070static void initGPIO(void);
    7171
    72 /*
    73  *  BSP predriver hook.
    74  */
    75 void bsp_predriver_hook(void)
    76 {
    77   bfin_interrupt_init();
    78 }
     72RTEMS_SYSINIT_ITEM(
     73  bfin_interrupt_init,
     74  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     75  RTEMS_SYSINIT_ORDER_MIDDLE
     76);
    7977
    8078void bsp_start(void)
  • c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c

    ra884df3 rc4ccf26c  
    1818#include <cplb.h>
    1919#include <libcpu/interrupt.h>
     20#include <rtems/sysinit.h>
    2021
    2122const unsigned int dcplbs_table[16][2] = {
     
    118119}
    119120
    120 /*
    121  * BSP predriver hook.  Called just before drivers are initialized.
    122  * Used to setup libc and install any BSP extensions.
    123  */
    124 void bsp_predriver_hook(void)
    125 {
    126   bfin_interrupt_init();
    127 }
     121RTEMS_SYSINIT_ITEM(
     122  bfin_interrupt_init,
     123  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     124  RTEMS_SYSINIT_ORDER_MIDDLE
     125);
    128126
    129127void bsp_start( void )
  • c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am

    ra884df3 rc4ccf26c  
    3838librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    3939librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    40 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4140librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    4241librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/i386/pc386/Makefile.am

    ra884df3 rc4ccf26c  
    105105
    106106# startup
    107 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    108107librtemsbsp_a_SOURCES += startup/bsp_fatal_halt.c
    109108librtemsbsp_a_SOURCES += startup/bspgetworkarea.c
  • c/src/lib/libbsp/lm32/shared/startup/bspstart.c

    ra884df3 rc4ccf26c  
    3434  BSP_uart_init(UART_BAUD_RATE);
    3535}
    36 
    37 void bsp_predriver_hook(void)
    38 {
    39 }
    40 
    41 
  • c/src/lib/libbsp/m32c/m32cbsp/Makefile.am

    ra884df3 rc4ccf26c  
    1818librtemsbsp_a_SOURCES =
    1919librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    20 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2120librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2221librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
  • c/src/lib/libbsp/m68k/av5282/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-loop.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/m68k/csb360/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
  • c/src/lib/libbsp/m68k/gen68340/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
  • c/src/lib/libbsp/m68k/gen68360/Makefile.am

    ra884df3 rc4ccf26c  
    2323librtemsbsp_a_SOURCES += startup/alloc360.c
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    25 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2625librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2726librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
  • c/src/lib/libbsp/m68k/genmcf548x/Makefile.am

    ra884df3 rc4ccf26c  
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-loop.c
    28 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2928librtemsbsp_a_SOURCES += startup/init548x.c
    3029librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am

    ra884df3 rc4ccf26c  
    2525# startup
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    27 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2827librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2928librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
  • c/src/lib/libbsp/m68k/mcf52235/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-loop.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/m68k/mcf5225x/Makefile.am

    ra884df3 rc4ccf26c  
    1818librtemsbsp_a_SOURCES = ../../../../../../bsps/shared/start/bspfatal-default.c
    1919librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-loop.c
    20 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2120librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2221librtemsbsp_a_SOURCES += startup/init5225x.c
  • c/src/lib/libbsp/m68k/mcf5235/Makefile.am

    ra884df3 rc4ccf26c  
    2222# startup
    2323librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    24 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2524librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-loop.c
    2625librtemsbsp_a_SOURCES += startup/bspgetcpuclockspeed.c
  • c/src/lib/libbsp/m68k/mcf5329/Makefile.am

    ra884df3 rc4ccf26c  
    2121# startup
    2222librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    23 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-loop.c
    2524librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/m68k/mrm332/Makefile.am

    ra884df3 rc4ccf26c  
    1919# startup
    2020librtemsbsp_a_SOURCES += startup/start_c.c
    21 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
    22 librtemsbsp_a_SOURCES += startup/bsppredriverhook.c
     21librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/mrm332/start/bspstart.c
    2322librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    2423librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
  • c/src/lib/libbsp/m68k/mvme147/Makefile.am

    ra884df3 rc4ccf26c  
    2424librtemsbsp_a_SOURCES += startup/bspstart.c
    2525librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    26 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2726librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2827librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/m68k/mvme147s/Makefile.am

    ra884df3 rc4ccf26c  
    2222# startup
    2323librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    24 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2524librtemsbsp_a_SOURCES += startup/bspstart.c
    2625librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
  • c/src/lib/libbsp/m68k/mvme162/Makefile.am

    ra884df3 rc4ccf26c  
    2121# startup
    2222librtemsbsp_a_SOURCES += startup/bspclean.c
    23 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2423librtemsbsp_a_SOURCES += startup/bspstart.c
    2524librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
  • c/src/lib/libbsp/m68k/mvme167/Makefile.am

    ra884df3 rc4ccf26c  
    2020# startup
    2121librtemsbsp_a_SOURCES += startup/bspclean.c
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2423librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/m68k/uC5282/Makefile.am

    ra884df3 rc4ccf26c  
    2121librtemsbsp_a_SOURCES += startup/bspclean.c
    2222librtemsbsp_a_SOURCES += startup/bspreset.c
    23 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2524librtemsbsp_a_SOURCES += startup/init5282.c
  • c/src/lib/libbsp/mips/csb350/Makefile.am

    ra884df3 rc4ccf26c  
    2121# startup
    2222librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    23 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2423librtemsbsp_a_SOURCES += startup/bspreset.c
    2524librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/mips/hurricane/Makefile.am

    ra884df3 rc4ccf26c  
    2222librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    2323librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    24 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2524librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
    2625librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/mips/jmr3904/Makefile.am

    ra884df3 rc4ccf26c  
    2121# startup
    2222librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    23 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2423librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2524librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/mips/malta/Makefile.am

    ra884df3 rc4ccf26c  
    2626librtemsbsp_a_SOURCES += startup/simple_access.c
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    28 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2928librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    3029librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/mips/rbtx4925/Makefile.am

    ra884df3 rc4ccf26c  
    2222# startup
    2323librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    24 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2524librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2625librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
  • c/src/lib/libbsp/mips/rbtx4938/Makefile.am

    ra884df3 rc4ccf26c  
    2323# startup
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    25 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2625librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2726librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
  • c/src/lib/libbsp/moxie/moxiesim/Makefile.am

    ra884df3 rc4ccf26c  
    2323# startup
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    25 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2625librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2726librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
  • c/src/lib/libbsp/nios2/nios2_iss/Makefile.am

    ra884df3 rc4ccf26c  
    2828librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    2929librtemsbsp_a_SOURCES += startup/setvec.c
    30 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3130
    3231# clock
  • c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am

    ra884df3 rc4ccf26c  
    1515# startup
    1616librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    17 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    1817librtemsbsp_a_SOURCES += ../../shared/startup/bspgetworkarea.c
    1918librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/or1k/generic_or1k/Makefile.am

    ra884df3 rc4ccf26c  
    4545librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    4646librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    47 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4847librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    4948librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
  • c/src/lib/libbsp/powerpc/beatnik/Makefile.am

    ra884df3 rc4ccf26c  
    4848librtemsbsp_a_SOURCES += ../shared/startup/bspgetworkarea.c
    4949librtemsbsp_a_SOURCES += ../shared/startup/probeMemEnd.c
    50 librtemsbsp_a_SOURCES += ../shared/startup/bsppredriverhook.c
    5150librtemsbsp_a_SOURCES += ../shared/startup/zerobss.c
    5251librtemsbsp_a_SOURCES += ../shared/startup/pgtbl_setup.c
  • c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c

    ra884df3 rc4ccf26c  
    3333#include <rtems/counter.h>
    3434#include <rtems/powerpc/powerpc.h>
     35#include <rtems/sysinit.h>
    3536/*#include <bsp/consoleIo.h>*/
    3637#include <libcpu/spr.h>   /* registers.h is included here */
     
    4546#include <libcpu/cpuIdent.h>
    4647#include <bsp/vectors.h>
     48#include <bsp/VME.h>
    4749#include <bsp/vpd.h>
    4850
     
    378380#endif
    379381}
     382
     383RTEMS_SYSINIT_ITEM(
     384  BSP_vme_config,
     385  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     386  RTEMS_SYSINIT_ORDER_MIDDLE
     387);
  • c/src/lib/libbsp/powerpc/gen5200/Makefile.am

    ra884df3 rc4ccf26c  
    9191librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    9292librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    93 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    9493librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    9594librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bsp-uboot-board-info.c
  • c/src/lib/libbsp/powerpc/gen83xx/Makefile.am

    ra884df3 rc4ccf26c  
    3232# startup
    3333librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    34 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3534librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    3635librtemsbsp_a_SOURCES += ../shared/src/tictac.c
  • c/src/lib/libbsp/powerpc/haleakala/Makefile.am

    ra884df3 rc4ccf26c  
    2222librtemsbsp_a_SOURCES += startup/bspstart.c
    2323librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    24 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2524librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2625librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am

    ra884df3 rc4ccf26c  
    3838librtemsbsp_a_SOURCES += ../shared/startup/bspgetworkarea.c
    3939librtemsbsp_a_SOURCES += ../shared/showbats.c
    40 librtemsbsp_a_SOURCES += ../shared/startup/bsppredriverhook.c
    4140librtemsbsp_a_SOURCES += ../shared/startup/zerobss.c
    4241librtemsbsp_a_SOURCES += ../shared/startup/pgtbl_setup.c
  • c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am

    ra884df3 rc4ccf26c  
    4343librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    4444librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    45 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4645librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
    4746librtemsbsp_a_SOURCES += ../shared/src/bsp-start-zero.S
  • c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am

    ra884df3 rc4ccf26c  
    3434# startup
    3535librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    36 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3736librtemsbsp_a_SOURCES += ../shared/startup/bspidle.c
    3837librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/powerpc/mvme3100/Makefile.am

    ra884df3 rc4ccf26c  
    4141librtemsbsp_a_SOURCES += startup/misc.c
    4242librtemsbsp_a_SOURCES += ../shared/startup/bspgetworkarea.c
    43 librtemsbsp_a_SOURCES += ../shared/startup/bsppredriverhook.c
    4443librtemsbsp_a_SOURCES += ../shared/startup/zerobss.c
    4544librtemsbsp_a_SOURCES += ../shared/startup/sbrk.c
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    ra884df3 rc4ccf26c  
    2626#include <rtems/bspIo.h>
    2727#include <rtems/counter.h>
     28#include <rtems/sysinit.h>
    2829#include <libcpu/spr.h>
    2930#include <libcpu/io.h>
     
    3536#include <libcpu/cpuIdent.h>
    3637#include <bsp/vectors.h>
     38#include <bsp/VME.h>
    3739#include <rtems/powerpc/powerpc.h>
    3840
     
    420422#endif
    421423}
     424
     425static void mvme3100_i2c_initialize(void)
     426{
     427  BSP_i2c_initialize();
     428}
     429
     430RTEMS_SYSINIT_ITEM(
     431  mvme3100_i2c_initialize,
     432  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     433  RTEMS_SYSINIT_ORDER_MIDDLE
     434);
     435
     436RTEMS_SYSINIT_ITEM(
     437  BSP_vme_config,
     438  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     439  RTEMS_SYSINIT_ORDER_MIDDLE
     440);
  • c/src/lib/libbsp/powerpc/mvme5500/Makefile.am

    ra884df3 rc4ccf26c  
    1818librtemsbsp_a_SOURCES += ../shared/startup/pgtbl_setup.c
    1919librtemsbsp_a_SOURCES += startup/pgtbl_activate.c
    20 librtemsbsp_a_SOURCES += ../shared/startup/bsppredriverhook.c
    2120librtemsbsp_a_SOURCES += ../shared/startup/zerobss.c
    2221librtemsbsp_a_SOURCES += ../shared/startup/bspgetworkarea.c
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    ra884df3 rc4ccf26c  
    2626#include <ctype.h>
    2727
     28#include <rtems/sysinit.h>
    2829#include <rtems/system.h>
    2930#include <rtems/powerpc/powerpc.h>
     
    3839#include <libcpu/cpuIdent.h>
    3940#include <bsp/vectors.h>
     41#include <bsp/VME.h>
    4042#include <bsp/bspException.h>
    4143
     
    342344  return(ConfVPD_buff[offset]);
    343345}
     346
     347RTEMS_SYSINIT_ITEM(
     348  BSP_vme_config,
     349  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     350  RTEMS_SYSINIT_ORDER_MIDDLE
     351);
  • c/src/lib/libbsp/powerpc/psim/Makefile.am

    ra884df3 rc4ccf26c  
    2424# startup
    2525librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    26 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2726librtemsbsp_a_SOURCES += startup/bspstart.c
    2827librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/powerpc/qemuppc/Makefile.am

    ra884df3 rc4ccf26c  
    2323# startup
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    25 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2625librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2726librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
  • c/src/lib/libbsp/powerpc/qoriq/Makefile.am

    ra884df3 rc4ccf26c  
    5151librtemsbsp_a_SOURCES += startup/portal.c
    5252librtemsbsp_a_SOURCES += startup/restart.S
    53 librtemsbsp_a_SOURCES += startup/bsppredriverhook.c
    5453librtemsbsp_a_SOURCES += startup/bspstart.c
    5554librtemsbsp_a_SOURCES += startup/bspreset.c
  • c/src/lib/libbsp/powerpc/qoriq/startup/bspstart.c

    ra884df3 rc4ccf26c  
    2626#include <rtems/config.h>
    2727#include <rtems/counter.h>
     28#include <rtems/sysinit.h>
    2829
    2930#include <libcpu/powerpc-utility.h>
     
    3435#include <bsp/fatal.h>
    3536#include <bsp/fdt.h>
     37#include <bsp/intercom.h>
    3638#include <bsp/irq-generic.h>
    3739#include <bsp/linker-symbols.h>
     
    186188#endif
    187189}
     190
     191#ifdef RTEMS_MULTIPROCESSING
     192RTEMS_SYSINIT_ITEM(
     193  qoriq_intercom_init,
     194  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     195  RTEMS_SYSINIT_ORDER_MIDDLE
     196);
     197#endif
  • c/src/lib/libbsp/powerpc/ss555/Makefile.am

    ra884df3 rc4ccf26c  
    2323# startup
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    25 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2625librtemsbsp_a_SOURCES += startup/bspstart.c
    2726librtemsbsp_a_SOURCES += startup/iss555.c
  • c/src/lib/libbsp/powerpc/t32mppc/Makefile.am

    ra884df3 rc4ccf26c  
    2828# Startup
    2929librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    30 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3130librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    3231librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
  • c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am

    ra884df3 rc4ccf26c  
    4040# startup
    4141librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    42 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4342librtemsbsp_a_SOURCES += ../shared/startup/bspidle.c
    4443librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/powerpc/virtex/Makefile.am

    ra884df3 rc4ccf26c  
    3535librtemsbsp_a_SOURCES += startup/bspstart.c
    3636librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    37 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3837librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    3938librtemsbsp_a_SOURCES += ../shared/src/bsp-start-zero.S
  • c/src/lib/libbsp/powerpc/virtex4/start/start.S

    ra884df3 rc4ccf26c  
    285285        *
    286286        * boot_card() supervises the initialization of RTEMS and the C
    287         * library.  It calls bsp_start(), bsp_predriver_hook(), etc.
     287        * library.  It calls bsp_start(), etc.
    288288        *------------------------------------------------------------------*/
    289289        lwz     r2,toc_pointer-base_addr(r1)        /* set r2 to toc */
  • c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c

    ra884df3 rc4ccf26c  
    5858#include <rtems/libio.h>
    5959#include <rtems/libcsupport.h>
     60#include <rtems/sysinit.h>
    6061
    6162#include <libcpu/cpuIdent.h>
     
    207208 *  initialized.  Clear out any stale interrupts here.
    208209 */
    209 void bsp_predriver_hook(void)
     210static void virtex4_pre_driver_hook(void)
    210211{
    211212  app_bsp_predriver_hook();
    212213}
     214
     215RTEMS_SYSINIT_ITEM(
     216  virtex4_pre_driver_hook,
     217  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     218  RTEMS_SYSINIT_ORDER_MIDDLE
     219);
  • c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c

    ra884df3 rc4ccf26c  
    5959#include <rtems/libio.h>
    6060#include <rtems/libcsupport.h>
     61#include <rtems/sysinit.h>
    6162
    6263#include <libcpu/cpuIdent.h>
     
    228229 *  initialized.  Clear out any stale interrupts here.
    229230 */
    230 void bsp_predriver_hook(void)
     231static void virtex5_pre_driver_hook(void)
    231232{
    232233  app_bsp_predriver_hook();
    233234}
     235
     236RTEMS_SYSINIT_ITEM(
     237  virtex5_pre_driver_hook,
     238  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     239  RTEMS_SYSINIT_ORDER_MIDDLE
     240);
  • c/src/lib/libbsp/riscv/riscv_generic/Makefile.am

    ra884df3 rc4ccf26c  
    3838# Shared
    3939librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    40 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    4140librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    4241librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/sh/gensh1/Makefile.am

    ra884df3 rc4ccf26c  
    2525
    2626# startup
    27 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2827librtemsbsp_a_SOURCES += ../shared/startup/bspstart.c
    2928librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
  • c/src/lib/libbsp/sh/gensh2/Makefile.am

    ra884df3 rc4ccf26c  
    2828# startup
    2929librtemsbsp_a_SOURCES += startup/hw_init.c
    30 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3130librtemsbsp_a_SOURCES += ../shared/startup/bspstart.c
    3231librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/sh/gensh4/Makefile.am

    ra884df3 rc4ccf26c  
    1919
    2020# startup
    21 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2221librtemsbsp_a_SOURCES += ../shared/startup/bspstart.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/sh/shsim/Makefile.am

    ra884df3 rc4ccf26c  
    1818
    1919# startup
    20 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2120librtemsbsp_a_SOURCES += ../shared/startup/bspstart.c
    2221librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
  • c/src/lib/libbsp/sparc/erc32/Makefile.am

    ra884df3 rc4ccf26c  
    2222# startup
    2323librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    24 librtemsbsp_a_SOURCES += startup/bsppredriver.c
    2524librtemsbsp_a_SOURCES += ../shared/startup/bspgetworkarea.c
    2625librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
    27 librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
     26librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/erc32/start/bspstart.c
    2827librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    2928librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/sparc/leon2/Makefile.am

    ra884df3 rc4ccf26c  
    2424# startup
    2525librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    26 librtemsbsp_a_SOURCES += startup/bsppredriver.c
    2726librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
    2827librtemsbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/sparc/leon2/startup/bspstart.c

    ra884df3 rc4ccf26c  
    88 *  LEON2 Cache Snooping Support
    99 *
     10 *  COPYRIGHT (c) 2011
     11 *  Aeroflex Gaisler
    1012 *
    1113 *  COPYRIGHT (c) 1989-2009.
     
    2628#include <bsp.h>
    2729#include <bsp/bootcard.h>
     30#include <rtems/sysinit.h>
    2831
    2932/*
     
    4952  CPU_SPARC_HAS_SNOOPING = set_snooping();
    5053}
     54
     55/* If RTEMS_DRVMGR_STARTUP is defined extra code is added that
     56 * registers the LEON2 AMBA bus driver as root driver into the
     57 * driver manager.
     58 *
     59 * The structues here are declared weak so that the user can override
     60 * the configuration and add custom cores in the RTEMS project.
     61 */
     62#ifdef RTEMS_DRVMGR_STARTUP
     63#include <drvmgr/drvmgr.h>
     64#include <drvmgr/leon2_amba_bus.h>
     65
     66/* All drivers included by BSP, this is overridden by the user by including
     67 * the devmgr_confdefs.h. No specifc drivers needed by BSP since IRQ/TIMER/UART
     68 * is not drvmgr drivers.
     69 */
     70drvmgr_drv_reg_func drvmgr_drivers[] __attribute__((weak)) =
     71{
     72  NULL /* End array with NULL */
     73};
     74
     75/* Defines what cores are avilable on the bus in addition to the standard
     76 * LEON2 peripherals.
     77 */
     78struct leon2_core leon2_amba_custom_cores[] __attribute__((weak)) =
     79{
     80  EMPTY_LEON2_CORE
     81};
     82
     83/* Configure LEON2 Root bus driver */
     84struct leon2_bus leon2_bus_config __attribute__((weak)) =
     85{
     86  &leon2_std_cores[0], /* The standard cores, defined by driver */
     87  &leon2_amba_custom_cores[0],   /* custom cores, defined by us */
     88  DRVMGR_TRANSLATE_ONE2ONE,
     89  DRVMGR_TRANSLATE_ONE2ONE,
     90};
     91
     92/* Driver resources on LEON2 AMBA bus. Used to set options for particular
     93 * LEON2 cores, it is up to the driver to look at the configuration paramters
     94 * once started.
     95 */
     96struct drvmgr_bus_res leon2_amba_res __attribute__((weak)) =
     97{
     98  .next = NULL,
     99  .resource = {
     100    DRVMGR_RES_EMPTY
     101  },
     102};
     103#endif /* RTEMS_DRVMGR_STARTUP */
     104
     105/*
     106 * Called just before drivers are initialized.  Is used to initialize shared
     107 * interrupt handling.
     108 */
     109static void leon2_pre_driver_hook( void )
     110{
     111  bsp_spurious_initialize();
     112
     113  /* Initialize shared interrupt handling, must be done after IRQ
     114   * controller has been found and initialized.
     115   */
     116  BSP_shared_interrupt_init();
     117
     118#ifdef RTEMS_DRVMGR_STARTUP
     119  leon2_root_register(&leon2_bus_config, &leon2_amba_res);
     120#endif
     121}
     122
     123RTEMS_SYSINIT_ITEM(
     124  leon2_pre_driver_hook,
     125  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     126  RTEMS_SYSINIT_ORDER_MIDDLE
     127);
  • c/src/lib/libbsp/sparc/leon3/Makefile.am

    ra884df3 rc4ccf26c  
    2929librtemsbsp_a_SOURCES += startup/bspstart.c
    3030librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    31 librtemsbsp_a_SOURCES += startup/bsppredriver.c
    3231librtemsbsp_a_SOURCES += ../shared/startup/bspgetworkarea.c
    3332librtemsbsp_a_SOURCES += ../../shared/sbrk.c
  • c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

    ra884df3 rc4ccf26c  
    44 *  The generic CPU dependent initialization has been performed
    55 *  before any of these are invoked.
     6 *
     7 *  COPYRIGHT (c) 2011
     8 *  Aeroflex Gaisler
    69 *
    710 *  COPYRIGHT (c) 1989-2013.
     
    2023#include <leon.h>
    2124#include <bsp/bootcard.h>
     25#include <drvmgr/drvmgr.h>
    2226#include <rtems/sysinit.h>
    2327
     
    8185  RTEMS_SYSINIT_ORDER_FIRST
    8286);
     87
     88static void leon3_interrupt_common_init( void )
     89{
     90  /* Initialize shared interrupt handling, must be done after IRQ
     91   * controller has been found and initialized.
     92   */
     93  BSP_shared_interrupt_init();
     94}
     95
     96/*
     97 * Called just before drivers are initialized.  Is used to initialize shared
     98 * interrupt handling.
     99 */
     100static void leon3_pre_driver_hook( void )
     101{
     102  bsp_spurious_initialize();
     103
     104#ifndef RTEMS_DRVMGR_STARTUP
     105  leon3_interrupt_common_init();
     106#endif
     107}
     108
     109RTEMS_SYSINIT_ITEM(
     110  leon3_pre_driver_hook,
     111  RTEMS_SYSINIT_BSP_PRE_DRIVERS,
     112  RTEMS_SYSINIT_ORDER_MIDDLE
     113);
     114
     115#ifdef RTEMS_DRVMGR_STARTUP
     116/*
     117 * Initialize shared interrupt handling, must be done after IRQ controller has
     118 * been found and initialized.
     119 */
     120RTEMS_SYSINIT_ITEM(
     121  leon3_interrupt_common_init,
     122  RTEMS_SYSINIT_DRVMGR_LEVEL_1,
     123  RTEMS_SYSINIT_ORDER_LAST
     124);
     125#endif
  • c/src/lib/libbsp/sparc64/niagara/Makefile.am

    ra884df3 rc4ccf26c  
    2020librtemsbsp_a_SOURCES += startup/bspclean.c
    2121librtemsbsp_a_SOURCES += startup/m5op_sparc.S
    22 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2322librtemsbsp_a_SOURCES += ../../shared/sbrk.c
    2423librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
  • c/src/lib/libbsp/sparc64/usiii/Makefile.am

    ra884df3 rc4ccf26c  
    3131librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
    3232librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    33 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    3433librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
    3534librtemsbsp_a_SOURCES += ../shared/startup/setvec.c
  • c/src/lib/libbsp/v850/gdbv850sim/Makefile.am

    ra884df3 rc4ccf26c  
    1919
    2020librtemsbsp_a_SOURCES = ../../../../../../bsps/shared/start/bspfatal-default.c
    21 librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    2221librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
    2322librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspstart-empty.c
Note: See TracChangeset for help on using the changeset viewer.