]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/ARM_CM7/r0p1/portasm.s
Update version number in preparation for maintenance release.
[freertos] / FreeRTOS / Source / portable / IAR / ARM_CM7 / r0p1 / portasm.s
index c247214a8f4dedde71cfe01a7843649bd7790789..6c561e7899f805db2703ba4a042d30eb5baa1e2e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V9.0.0rc1 - Copyright (C) 2016 Real Time Engineers Ltd.\r
+    FreeRTOS V9.0.1 - Copyright (C) 2017 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -162,6 +162,12 @@ vPortStartFirstTask
        ldr r0, [r0]\r
        /* Set the msp back to the start of the stack. */\r
        msr msp, r0\r
+       /* Clear the bit that indicates the FPU is in use in case the FPU was used\r
+       before the scheduler was started - which would otherwise result in the\r
+       unnecessary leaving of space in the SVC stack for lazy saving of FPU\r
+       registers. */\r
+       mov r0, #0\r
+       msr control, r0\r
        /* Call SVC to start the first task. */\r
        cpsie i\r
        cpsie f\r