]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/RL78/portasm.s87
Update version number to 9.0.0rc2.
[freertos] / FreeRTOS / Source / portable / IAR / RL78 / portasm.s87
index 6da1fb179cae63948cb551413200984e41f5b9d6..70cc267a8d5f8c568cc4e323d96430358720633e 100644 (file)
@@ -1,5 +1,6 @@
 ;/*\r
-;    FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+;    FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.\r
+;    All rights reserved\r
 ;\r
 ;\r
 ;    ***************************************************************************\r
@@ -86,12 +87,12 @@ vPortStartFirstTask:
         RSEG CODE:CODE\r
 vPortTickISR:\r
 \r
-       portSAVE_CONTEXT                        ; Save the context of the current task.\r
-       call      xTaskIncrementTick    ; 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