]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/RL78/portasm.s87
Update version numbers in preparation for V8.2.0 release candidate 1.
[freertos] / FreeRTOS / Source / portable / IAR / RL78 / portasm.s87
index f36411de7b574b8e27d434778a5e7319035a8998..32a7e6e705f110f96e0967228f2edfb158d14f04 100644 (file)
@@ -1,5 +1,6 @@
 ;/*\r
-;    FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+;    FreeRTOS V8.2.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+;    All rights reserved\r
 ;\r
 ;\r
 ;    ***************************************************************************\r
@@ -61,7 +62,7 @@
        PUBLIC    vPortTickISR\r
 \r
        EXTERN    vTaskSwitchContext\r
-       EXTERN    vTaskIncrementTick\r
+       EXTERN    xTaskIncrementTick\r
 \r
 ; FreeRTOS yield handler.  This is installed as the BRK software interrupt\r
 ; handler.\r
@@ -86,12 +87,12 @@ vPortStartFirstTask:
         RSEG CODE:CODE\r
 vPortTickISR:\r
 \r
-       portSAVE_CONTEXT                        ; Save the context of the current task.\r
-       call      vTaskIncrementTick    ; Call the timer tick function.\r
-#if configUSE_PREEMPTION == 1\r
-       call      vTaskSwitchContext    ; Call the scheduler to select the next task.\r
-#endif\r
-       portRESTORE_CONTEXT                     ; Restore the context of the next task to run.\r
+       portSAVE_CONTEXT                       ; Save the context of the current task.\r
+       call    xTaskIncrementTick     ; Call the timer tick function.\r
+       cmpw    ax, #0x00\r
+       skz\r
+       call    vTaskSwitchContext     ; Call the scheduler to select the next task.\r
+       portRESTORE_CONTEXT                    ; Restore the context of the next task to run.\r
        reti\r
 \r
 \r