diff options
author | Daniel Cederman <cederman@gaisler.com> | 2014-10-01 13:53:03 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-10-02 07:29:05 +0200 |
commit | 93b000e6457c7b033a9e2826847a712e40e33ec0 (patch) | |
tree | 6fd279e6caec35e7f7a0426671c38bf9ae172959 /c/src/lib/libbsp/sparc/leon3/include/bsp.h | |
parent | pppd: Import change from NetBSD (diff) | |
download | rtems-93b000e6457c7b033a9e2826847a712e40e33ec0.tar.bz2 |
bsp/leon3: Replace the define LEON3_MP_IRQ with a weakly linked variable
The LEON3_MP_IRQ define is used to pick the IRQ to be used by the
shared memory driver and for inter-processor interrupts. On some LEON3
systems, for example the GR712RC, the default value of 14 is not suitable.
To make this value configurable from the application, it is replaced with
a weakly linked variable that can be overridden from the application.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/include/bsp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h index cb15796499..ceb7f2ecdc 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/bsp.h +++ b/c/src/lib/libbsp/sparc/leon3/include/bsp.h @@ -215,6 +215,13 @@ extern void BSP_shared_interrupt_unmask(int irq); */ extern void BSP_shared_interrupt_mask(int irq); +/* Irq used by the shared memory driver and for inter-processor interrupts. + * The variable is weakly linked. Redefine the variable in your application + * to override the BSP default. + * See startup/bspsmp.c for the default value. + */ +extern unsigned char LEON3_mp_irq; + #ifdef __cplusplus } #endif |