diff --git a/FreeRTOS/Source/portable/MPLAB/PIC32MX/portmacro.h b/FreeRTOS/Source/portable/MPLAB/PIC32MX/portmacro.h index 74dc76410f..8332c53805 100644 --- a/FreeRTOS/Source/portable/MPLAB/PIC32MX/portmacro.h +++ b/FreeRTOS/Source/portable/MPLAB/PIC32MX/portmacro.h @@ -201,12 +201,12 @@ extern void vPortClearInterruptMaskFromISR( unsigned portBASE_TYPE ); #define portYIELD() \ { \ -unsigned long ulStatus; \ +unsigned long ulCause; \ \ /* Trigger software interrupt. */ \ - ulStatus = _CP0_GET_CAUSE(); \ - ulStatus |= portSW0_BIT; \ - _CP0_SET_CAUSE( ulStatus ); \ + ulCause = _CP0_GET_CAUSE(); \ + ulCause |= portSW0_BIT; \ + _CP0_SET_CAUSE( ulCause ); \ } #ifdef configASSERT