diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-16 02:58:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-16 02:58:42 +0000 |
commit | 95fe0a934a62bc199c8f2e2cd89fc206318e9dc6 (patch) | |
tree | 118129e253805a8c6cc510bfd10fdbec0db2ec37 /nuttx/arch/arm/src/lm3s | |
parent | 5531e1a0c67e9cde0fc3da6b3d0ec1ea0716d2bc (diff) | |
download | px4-nuttx-95fe0a934a62bc199c8f2e2cd89fc206318e9dc6.tar.gz px4-nuttx-95fe0a934a62bc199c8f2e2cd89fc206318e9dc6.tar.bz2 px4-nuttx-95fe0a934a62bc199c8f2e2cd89fc206318e9dc6.zip |
Fix interrupt stack compilation problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2804 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/lm3s_vectors.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_vectors.S b/nuttx/arch/arm/src/lm3s/lm3s_vectors.S index 58674dda4..d760c13f7 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_vectors.S +++ b/nuttx/arch/arm/src/lm3s/lm3s_vectors.S @@ -377,7 +377,7 @@ lm3s_irqcommon: */
#ifdef CONFIG_ARCH_INTERRUPTSTACK
- ld sp, #up_interruptstack_base
+ ldr sp, =g_intstackbase
str r1, [sp, #-4]! /* Save the MSP on the interrupt stack */
bl up_doirq /* R0=IRQ, R1=register save (msp) */
ldr r1, [sp, #+4]! /* Recover R1=main stack pointer */
@@ -431,7 +431,7 @@ lm3s_irqcommon: .size handlers, .-handlers
/************************************************************************************
- * Name: up_interruptstack/g_userstack
+ * Name: up_interruptstack/g_intstackbase
*
* Description:
* Shouldn't happen
@@ -440,10 +440,11 @@ lm3s_irqcommon: #if CONFIG_ARCH_INTERRUPTSTACK > 3
.bss
+ .global g_intstackbase
.align 4
up_interruptstack:
.skip (CONFIG_ARCH_INTERRUPTSTACK & ~3)
-up_interruptstack_base:
+g_intstackbase:
.size up_interruptstack, .-up_interruptstack
#endif
|