summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/nios2/rtems/score
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2011-08-14 07:38:14 +0000
committerChris Johns <chrisj@rtems.org>2011-08-14 07:38:14 +0000
commit3848df4d72412f448350b2df1cada9c5e3308afd (patch)
tree15af48b44b4be215fad88367580ce69074eb29f8 /cpukit/score/cpu/nios2/rtems/score
parent2011-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-3848df4d72412f448350b2df1cada9c5e3308afd.tar.bz2
2011-08-14 Chris Johns <chrisj@rtems.org>
* rtems/score/cpu.h: Clear the vector table for simple vectored interrupts. * irq.c: Add support for using the IIC with the Altera HAL.
Diffstat (limited to 'cpukit/score/cpu/nios2/rtems/score')
-rw-r--r--cpukit/score/cpu/nios2/rtems/score/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h
index 4ace4c4f3a..61a1b421b8 100644
--- a/cpukit/score/cpu/nios2/rtems/score/cpu.h
+++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h
@@ -182,7 +182,12 @@ typedef struct {
uint32_t ipending;
} CPU_Exception_frame;
+#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
+#define _CPU_Initialize_vectors() \
+ memset(_ISR_Vector_table, 0, sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS)
+#else
#define _CPU_Initialize_vectors()
+#endif
#define _CPU_ISR_Disable( _isr_cookie ) \
do { \