source: rtems/c/src/lib/libbsp/sparc/leon3/startup/bsppredriver.c @ 6d21a3f2

5
Last change on this file since 6d21a3f2 was 6d21a3f2, checked in by Sebastian Huber <sebastian.huber@…>, on 04/17/18 at 04:31:30

drvmgr: Remove bsp_driver_level_hook()

Use RTEMS_SYSINIT_ITEM() instead.

Update #2408.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 * @ingroup sparc_leon3
4 * @brief Installs the BSP pre-driver hook
5 */
6
7/*
8 *  COPYRIGHT (c) 2011
9 *  Aeroflex Gaisler
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#include <bsp.h>
17#include <bsp/bootcard.h>
18
19#include <drvmgr/drvmgr.h>
20
21#include <rtems/sysinit.h>
22
23static void leon3_interrupt_common_init( void )
24{
25  /* Initialize shared interrupt handling, must be done after IRQ
26   * controller has been found and initialized.
27   */
28  BSP_shared_interrupt_init();
29}
30
31/*
32 *  bsp_predriver_hook
33 *
34 *  BSP predriver hook. Called just before drivers are initialized.
35 *  Is used to initialize shared interrupt handling.
36 */
37void bsp_predriver_hook( void )
38{
39  bsp_spurious_initialize();
40
41#ifndef RTEMS_DRVMGR_STARTUP
42  leon3_interrupt_common_init();
43#endif
44}
45
46#ifdef RTEMS_DRVMGR_STARTUP
47/*
48 * Initialize shared interrupt handling, must be done after IRQ controller has
49 * been found and initialized.
50 */
51RTEMS_SYSINIT_ITEM(
52  leon3_interrupt_common_init,
53  RTEMS_SYSINIT_DRVMGR_LEVEL_1,
54  RTEMS_SYSINIT_ORDER_LAST
55);
56#endif
Note: See TracBrowser for help on using the repository browser.