;/*\r
-; FreeRTOS V7.5.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+; FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+; All rights reserved\r
;\r
;\r
; ***************************************************************************\r
\r
portRESTORE_CONTEXT macro\r
\r
- ; Switch to system mode\r
- CPS #SYS_MODE\r
-\r
; Set the SP to point to the stack of the task being restored.\r
LDR R0, =pxCurrentTCB\r
LDR R1, [R0]\r
CMP R1, #0\r
\r
; Restore the floating point context, if any\r
- LDMFDNE SP!, {R0}\r
+ POPNE {R0}\r
VPOPNE {D16-D31}\r
VPOPNE {D0-D15}\r
VMSRNE FPSCR, R0\r