X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FCORTEX_A9_Zynq_ZC702%2FRTOSDemo%2Fsrc%2FFreeRTOS_tick_config.c;h=66fed90bbefac4132d025091a66cc66db645b47b;hb=6a98238fd1b8047c2c2ad925e06fe5bbc70d1988;hp=24ed53b182dd86c36a5d369746b03c5e0d3c4db0;hpb=70f0bb6133065c1f0049f8258d0454027d37f657;p=freertos diff --git a/FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/FreeRTOS_tick_config.c b/FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/FreeRTOS_tick_config.c index 24ed53b18..66fed90bb 100644 --- a/FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/FreeRTOS_tick_config.c +++ b/FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/FreeRTOS_tick_config.c @@ -1,5 +1,5 @@ /* - FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd. + FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. @@ -147,7 +147,14 @@ void vClearTickInterrupt( void ) } /*-----------------------------------------------------------*/ -void vApplicationIRQHandler( uint32_t ulICCIAR ) +/* This is the callback function which is called by the FreeRTOS Cortex-A port +layer in response to an interrupt. If the function is called +vApplicationFPUSafeIRQHandler() then it is called after the floating point +registers have been saved. If the function is called vApplicationIRQHandler() +then it will be called without first having saved the FPU registers. See +http://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html for +more information */ +void vApplicationFPUSafeIRQHandler( uint32_t ulICCIAR ) { extern const XScuGic_Config XScuGic_ConfigTable[]; static const XScuGic_VectorTableEntry *pxVectorTable = XScuGic_ConfigTable[ XPAR_SCUGIC_SINGLE_DEVICE_ID ].HandlerTable; @@ -155,7 +162,7 @@ uint32_t ulInterruptID; const XScuGic_VectorTableEntry *pxVectorEntry; /* Re-enable interrupts. */ - __asm ( "cpsie i" ); + __asm ( "cpsie i" ); /* The ID of the interrupt is obtained by bitwise anding the ICCIAR value with 0x3FF. */