Ignore:
Timestamp:
Dec 12, 2011, 2:50:57 PM (9 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, 5, master
Children:
d11f228
Parents:
219d4045
git-author:
Daniel Hellstrom <daniel@…> (12/12/11 14:50:57)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:16)
Message:

LEON3: implemented BSP DRVMGR startup initialization

File:
1 edited

Legend:

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

    r219d4045 re428dc4a  
    1717#include <bsp/bootcard.h>
    1818
     19static void leon3_interrupt_common_init( void )
     20{
     21  /* Initialize shared interrupt handling, must be done after IRQ
     22   * controller has been found and initialized.
     23   */
     24  BSP_shared_interrupt_init();
     25}
     26
    1927/*
    2028 *  bsp_predriver_hook
     
    2533void bsp_predriver_hook( void )
    2634{
     35#ifndef RTEMS_DRVMGR_STARTUP
     36  leon3_interrupt_common_init();
     37#endif
     38}
     39
     40#ifdef RTEMS_DRVMGR_STARTUP
     41/*
     42 *  bsp_driver_level_hook
     43 *
     44 *  BSP driver level hook. Called just after drivers have reached initialization
     45 *  level 'level' (1,2,3,4). See exinit.c for meaning of the every level.
     46 *
     47 *  Initializes the BSP Interrupt layer
     48 *  After Level 1 we can trust that interrupt controller and system
     49 *  clock timer drivers now have been initialized.
     50 */
     51void bsp_driver_level_hook( int level )
     52{
    2753  /* Initialize shared interrupt handling, must be done after IRQ
    2854   * controller has been found and initialized.
    2955   */
    30   BSP_shared_interrupt_init();
     56  if (level != 1)
     57        return;
     58
     59  leon3_interrupt_common_init();
    3160}
     61#endif
Note: See TracChangeset for help on using the changeset viewer.