blob: 498c97b0a35ec97bebcaff9fc831e278c91e6faf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/**
* @file
* @ingroup sparc_leon3
* @brief Installs the BSP pre-driver hook
*/
/*
* COPYRIGHT (c) 2011
* Aeroflex Gaisler
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <bsp.h>
#include <bsp/bootcard.h>
static void leon3_interrupt_common_init( void )
{
/* Initialize shared interrupt handling, must be done after IRQ
* controller has been found and initialized.
*/
BSP_shared_interrupt_init();
}
/*
* bsp_predriver_hook
*
* BSP predriver hook. Called just before drivers are initialized.
* Is used to initialize shared interrupt handling.
*/
void bsp_predriver_hook( void )
{
bsp_spurious_initialize();
#ifndef RTEMS_DRVMGR_STARTUP
leon3_interrupt_common_init();
#endif
}
#ifdef RTEMS_DRVMGR_STARTUP
/*
* bsp_driver_level_hook
*
* BSP driver level hook. Called just after drivers have reached initialization
* level 'level' (1,2,3,4). See exinit.c for meaning of the every level.
*
* Initializes the BSP Interrupt layer
* After Level 1 we can trust that interrupt controller and system
* clock timer drivers now have been initialized.
*/
void bsp_driver_level_hook( int level )
{
/* Initialize shared interrupt handling, must be done after IRQ
* controller has been found and initialized.
*/
if (level != 1)
return;
leon3_interrupt_common_init();
}
#endif
|