From 95fe0a934a62bc199c8f2e2cd89fc206318e9dc6 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 16 Jul 2010 02:58:42 +0000 Subject: Fix interrupt stack compilation problem git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2804 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/stm32/stm32_vectors.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'nuttx/arch/arm/src/stm32/stm32_vectors.S') diff --git a/nuttx/arch/arm/src/stm32/stm32_vectors.S b/nuttx/arch/arm/src/stm32/stm32_vectors.S index 6a8f64c5b..7d119f326 100644 --- a/nuttx/arch/arm/src/stm32/stm32_vectors.S +++ b/nuttx/arch/arm/src/stm32/stm32_vectors.S @@ -2,7 +2,7 @@ * arch/arm/src/stm32/stm32_vectors.S * arch/arm/src/chip/stm32_vectors.S * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -439,7 +439,7 @@ stm32_common: */ #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 */ @@ -493,7 +493,7 @@ stm32_common: .size handlers, .-handlers /************************************************************************************ - * Name: up_interruptstack/g_userstack + * Name: up_interruptstack/g_intstackbase * * Description: * Shouldn't happen @@ -502,10 +502,11 @@ stm32_common: #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 -- cgit v1.2.3