summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-18 21:10:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-18 21:10:08 +0000
commitc3998d2feead04441a90dcd45c6a35f8477b7fd6 (patch)
tree236e9eb67fcdb788b9ccb454e931703fe30a74ce /nuttx/arch/arm/src/lpc17xx/lpc17_irq.c
parentbef7c0ac3dcfd2277e3df45a5767f27187633bb2 (diff)
downloadnuttx-c3998d2feead04441a90dcd45c6a35f8477b7fd6.tar.gz
nuttx-c3998d2feead04441a90dcd45c6a35f8477b7fd6.tar.bz2
nuttx-c3998d2feead04441a90dcd45c6a35f8477b7fd6.zip
Add support for ram vectors to the ARMv7-M architecture
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5756 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_irq.c')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_irq.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c b/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c
index 6d96ff386..80de4596c 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c
@@ -48,6 +48,7 @@
#include <arch/irq.h>
#include "nvic.h"
+#include "ram_vectors.h"
#include "up_arch.h"
#include "os_internal.h"
#include "up_internal.h"
@@ -290,6 +291,14 @@ void up_irqinitialize(void)
putreg32(0, NVIC_IRQ0_31_ENABLE);
+ /* If CONFIG_ARCH_RAMVECTORS is defined, then we are using a RAM-based
+ * vector table that requires special initialization.
+ */
+
+#ifdef CONFIG_ARCH_RAMVECTORS
+ up_ramvec_initialize();
+#endif
+
/* Set all interrrupts (and exceptions) to the default priority */
putreg32(DEFPRIORITY32, NVIC_SYSH4_7_PRIORITY);