diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2014-05-29 21:09:00 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2014-10-09 09:07:22 +0200 |
commit | fa40ec528874610bff7d1b245f7b3285bbf7c8d4 (patch) | |
tree | 3232d072137c855f2c95ed463efdc739e1b60dc9 /c/src/lib/libbsp/sparc/leon2 | |
parent | bsps/mcf5235: Fix warnings (diff) | |
download | rtems-fa40ec528874610bff7d1b245f7b3285bbf7c8d4.tar.bz2 |
SPARC BSPs: added CPU aware interrupt ctrl operations
The LEON2 and ERC32 maps the new macros to CPU0 since they do not
support SMP. With the LEON3 a specific CPU's interrupt controller
registers can be modified using macros.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon2')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon2/include/leon.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/include/leon.h b/c/src/lib/libbsp/sparc/leon2/include/leon.h index 25826bdd19..8d2f0c5c55 100644 --- a/c/src/lib/libbsp/sparc/leon2/include/leon.h +++ b/c/src/lib/libbsp/sparc/leon2/include/leon.h @@ -362,6 +362,18 @@ static __inline__ int bsp_irq_fixup(int irq) #define BSP_Restore_interrupt(_source, _previous) \ LEON_Restore_interrupt(_source, _previous) +/* Make all SPARC BSPs have common macros for interrupt handling on any CPU */ +#define BSP_Cpu_Is_interrupt_masked(_source, _cpu) \ + BSP_Is_interrupt_masked(_source) +#define BSP_Cpu_Unmask_interrupt(_source, _cpu) \ + BSP_Unmask_interrupt(_source) +#define BSP_Cpu_Mask_interrupt(_source, _cpu) \ + BSP_Mask_interrupt(_source) +#define BSP_Cpu_Disable_interrupt(_source, _previous, _cpu) \ + BSP_Disable_interrupt(_source, _prev) +#define BSP_Cpu_Restore_interrupt(_source, _previous, _cpu) \ + BSP_Cpu_Restore_interrupt(_source, _previous) + /* * Each timer control register is organized as follows: * |