source: rtems/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c @ c74bd51

Last change on this file since c74bd51 was c74bd51, checked in by Daniel Hellstrom <daniel@…>, on 04/06/12 at 10:05:07

SPARC BSPs: implemented shared-irq using libbsp/shared layer

The implementation use IRQ number instead of vector number since
some IRQs does not have a unique vector, for example the extended
interrupts all enter the same trap vector entry.

Added support for the LEON3 extended interrupt controller when using
the shared IRQ layer.

ERC32 patches untested.

Signed-off-by: Daniel Hellstrom <daniel@…>

Regenerate

  • Property mode set to 100644
File size: 610 bytes
Line 
1/*  Installs the BSP pre-driver hook
2 *
3 *  COPYRIGHT (c) 2011
4 *  Aeroflex Gaisler
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.com/license/LICENSE.
9 */
10
11#include <bsp.h>
12
13/*
14 *  bsp_predriver_hook
15 *
16 *  BSP predriver hook. Called just before drivers are initialized.
17 *  Is used to initialize shared interrupt handling.
18 */
19void bsp_predriver_hook( 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}
Note: See TracBrowser for help on using the repository browser.