diff options
author | Daniel Cederman <cederman@gaisler.com> | 2015-01-09 09:03:59 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-02-11 15:35:23 +0100 |
commit | 0c94a46fa3938922481f06e8c64d8caba6d753b3 (patch) | |
tree | bface1d6d879d04003f0b75d4dbca788c6ad8609 /c/src/lib/libbsp/sparc/leon2/include/bsp.h | |
parent | or1k/cpu.c: Eliminate dependency on BSP provided header (diff) | |
download | rtems-0c94a46fa3938922481f06e8c64d8caba6d753b3.tar.bz2 |
bsp/sparc: Move BSP_ISR_handler to a separate file and rename it
This allows it to be wrapped by another function at link-time
and can be used to trace interrupts. If not placed in a separate
file, the function pointer address used in BSP_shared_interrupt_init
will be resolved at compile-time, and the function will not be wrappable.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon2/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon2/include/bsp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/include/bsp.h b/c/src/lib/libbsp/sparc/leon2/include/bsp.h index 41a1e43629..bd8587fe85 100644 --- a/c/src/lib/libbsp/sparc/leon2/include/bsp.h +++ b/c/src/lib/libbsp/sparc/leon2/include/bsp.h @@ -130,6 +130,9 @@ typedef void (*bsp_shared_isr)(void *arg); /* Initializes the Shared System Interrupt service */ extern void BSP_shared_interrupt_init(void); +/* Called directly from IRQ trap handler TRAP[0x10..0x1F] = IRQ[0..15] */ +void bsp_isr_handler(rtems_vector_number vector); + /* Registers a shared IRQ handler, and enable it at IRQ controller. Multiple * interrupt handlers may use the same IRQ number, all ISRs will be called * when an interrupt on that line is fired. |