summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthread.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 08:14:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 13:02:22 +0200
commit836f4545dcb75cb399bb498e7a62c20541dac84f (patch)
treea873418fd14e3b80eeceeb463d029cc31fb3517d /cpukit/posix/src/pthread.c
parentnetwork: Header file compatiblity (diff)
downloadrtems-836f4545dcb75cb399bb498e7a62c20541dac84f.tar.bz2
Fix CPU_COPY() usage
The original CPU_COPY() support of Newlib <sys/cpuset.h> had the parameters in the wrong order. This is fixed in Newlib since 2017-05-22. Update #3023.
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r--cpukit/posix/src/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 65242f71b8..edbfa13121 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -254,7 +254,7 @@ static void _POSIX_Threads_Manager_initialization(void)
_Assert( affinity->setsize == sizeof( attr->affinitysetpreallocated ) );
attr->affinityset = &attr->affinitysetpreallocated;
attr->affinitysetsize = affinity->setsize;
- CPU_COPY( attr->affinityset, affinity->set );
+ CPU_COPY( affinity->set, attr->affinityset );
#endif
_Thread_Initialize_information(