mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Update to use Yagarto compiler and use the noinline attribute on the serial port handler function.
This commit is contained in:
parent
4b7c5b07c1
commit
9a76bc39cb
3 changed files with 14 additions and 2 deletions
|
@ -93,7 +93,7 @@ void vUART_ISR_Wrapper( void ) __attribute__ ((naked));
|
|||
|
||||
/* The ISR function that actually performs the work. This must be separate
|
||||
from the wrapper to ensure the correct stack frame is set up. */
|
||||
void vUART_ISR_Handler( void );
|
||||
void vUART_ISR_Handler( void ) __attribute__ ((noinline));
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
void vSerialISRCreateQueues( unsigned portBASE_TYPE uxQueueLength, xQueueHandle *pxRxedChars, xQueueHandle *pxCharsForTx )
|
||||
|
@ -116,7 +116,7 @@ void vUART_ISR_Wrapper( void )
|
|||
|
||||
/* Call the handler. This must be a separate function to ensure the
|
||||
stack frame is correctly set up. */
|
||||
vUART_ISR_Handler();
|
||||
__asm volatile( "bl vUART_ISR_Handler" );
|
||||
|
||||
/* Restore the context of whichever task will run next. */
|
||||
portRESTORE_CONTEXT();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue