]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/MPLAB/PIC32MX/portmacro.h
Ensure the PIC32 interrupt stack is 8 byte aligned for all values of configISR_STACK_...
[freertos] / FreeRTOS / Source / portable / MPLAB / PIC32MX / portmacro.h
index 994601b4c13dadda28408241ca2e1ef68a14d1c1..801ed8731d6beee580135a6e107decd477f68457 100644 (file)
@@ -198,7 +198,7 @@ extern void vPortClearInterruptMaskFromISR( UBaseType_t );
 \r
        /*-----------------------------------------------------------*/\r
 \r
-       #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31 - _clz( ( uxReadyPriorities ) ) )\r
+       #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31UL - _clz( ( uxReadyPriorities ) ) )\r
 \r
 #endif /* taskRECORD_READY_PRIORITY */\r
 \r