summaryrefslogtreecommitdiff
path: root/FreeRTOS/Source/tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Source/tasks.c')
-rw-r--r--FreeRTOS/Source/tasks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/FreeRTOS/Source/tasks.c b/FreeRTOS/Source/tasks.c
index 6ad1c58..1aac8f2 100644
--- a/FreeRTOS/Source/tasks.c
+++ b/FreeRTOS/Source/tasks.c
@@ -1641,6 +1641,7 @@ void vTaskSwitchContext( void )
#if ( configUSE_NEWLIB_REENTRANT == 1 )
_impure_ptr = &(pxCurrentTCB->reent);
+ errno = _impure_ptr->_errno;
#endif
traceTASK_SWITCHED_IN();