diff options
author | Pixel <pixel@nobis-crew.org> | 2011-02-05 08:31:33 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-02-05 08:31:33 -0800 |
commit | 0736203a630b2fbc2bc3e6383e4aec9285bba184 (patch) | |
tree | 1bca3f8821e607a47b4adfaab2f60fa029a2a58a /FreeRTOS | |
parent | 681c1493836e79ea87faba47a804899374ccc219 (diff) |
Context switch also means switching that global errno variable.
Diffstat (limited to 'FreeRTOS')
-rw-r--r-- | FreeRTOS/Source/tasks.c | 1 |
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();
|