From: richardbarry Date: Fri, 18 Sep 2009 14:08:36 +0000 (+0000) Subject: Update to use the latest Yagarto and change the C handler part of the interrupt routi... X-Git-Tag: V6.0.0~75 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a0e306cdebfa44acb9d0d61a52bcd269abfcba2a;p=freertos Update to use the latest Yagarto and change the C handler part of the interrupt routines to use the noinline attribute. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@853 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/ARM7_LPC2106_GCC/lpc2106-ram.ld b/Demo/ARM7_LPC2106_GCC/lpc2106-ram.ld index c54802c2f..523a41ad7 100644 --- a/Demo/ARM7_LPC2106_GCC/lpc2106-ram.ld +++ b/Demo/ARM7_LPC2106_GCC/lpc2106-ram.ld @@ -36,6 +36,12 @@ SECTIONS *(.bss) } >ram + . = ALIGN(4); + .eh_frame : + { + KEEP (*(.eh_frame)) + } > ram + /* Align here to ensure that the .bss section occupies space up to _end. Align after .bss to ensure correct alignment even if the .bss section disappears because there are no input sections. */ diff --git a/Demo/ARM7_LPC2106_GCC/lpc2106-rom.ld b/Demo/ARM7_LPC2106_GCC/lpc2106-rom.ld index e7cf25a22..0e70a4aa7 100644 --- a/Demo/ARM7_LPC2106_GCC/lpc2106-rom.ld +++ b/Demo/ARM7_LPC2106_GCC/lpc2106-rom.ld @@ -36,6 +36,12 @@ SECTIONS *(.bss) } >ram + . = ALIGN(4); + .eh_frame : + { + KEEP (*(.eh_frame)) + } > ram + /* Align here to ensure that the .bss section occupies space up to _end. Align after .bss to ensure correct alignment even if the .bss section disappears because there are no input sections. */ diff --git a/Demo/ARM7_LPC2106_GCC/serial/serialISR.c b/Demo/ARM7_LPC2106_GCC/serial/serialISR.c index f3de5448f..5d2a06d16 100644 --- a/Demo/ARM7_LPC2106_GCC/serial/serialISR.c +++ b/Demo/ARM7_LPC2106_GCC/serial/serialISR.c @@ -96,7 +96,7 @@ void vSerialISRCreateQueues( unsigned portBASE_TYPE uxQueueLength, xQueueHandle void vUART_ISR_Wrapper( void ) __attribute__ ((naked)); /* UART0 interrupt service routine handler. */ -void vUART_ISR_Handler( void ); +void vUART_ISR_Handler( void ) __attribute__ ((noinline)); /*-----------------------------------------------------------*/ void vSerialISRCreateQueues( unsigned portBASE_TYPE uxQueueLength, xQueueHandle *pxRxedChars, @@ -124,7 +124,7 @@ void vUART_ISR_Wrapper( void ) /* Call the handler. This must be a separate function from the wrapper to ensure the correct stack frame is set up. */ - vUART_ISR_Handler(); + __asm volatile ("bl vUART_ISR_Handler"); /* Restore the context of whichever task is going to run next. */ portRESTORE_CONTEXT();