Changeset 836f454 in rtems


Ignore:
Timestamp:
Jun 7, 2017, 6:14:30 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b06dbb26
Parents:
26ccd139
git-author:
Sebastian Huber <sebastian.huber@…> (06/07/17 06:14:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/07/17 11:02:22)
Message:

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.

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/pthread.c

    r26ccd139 r836f454  
    255255    attr->affinityset             = &attr->affinitysetpreallocated;
    256256    attr->affinitysetsize         = affinity->setsize;
    257     CPU_COPY( attr->affinityset, affinity->set );
     257    CPU_COPY( affinity->set, attr->affinityset );
    258258  #endif
    259259
  • cpukit/posix/src/pthreadattrgetaffinitynp.c

    r26ccd139 r836f454  
    4343    return EINVAL;
    4444
    45   CPU_COPY( cpuset, attr->affinityset );
     45  CPU_COPY( attr->affinityset, cpuset );
    4646  return 0;
    4747}
  • cpukit/posix/src/pthreadattrsetaffinitynp.c

    r26ccd139 r836f454  
    4444    return EINVAL;
    4545
    46   CPU_COPY( attr->affinityset, cpuset );
     46  CPU_COPY( cpuset, attr->affinityset );
    4747
    4848  return 0;
  • cpukit/posix/src/pthreadsetaffinitynp.c

    r26ccd139 r836f454  
    6565
    6666    api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    67     CPU_COPY( api->Attributes.affinityset, cpuset );
     67    CPU_COPY( cpuset, api->Attributes.affinityset );
    6868  }
    6969
  • cpukit/score/include/rtems/score/cpusetimpl.h

    r26ccd139 r836f454  
    118118  set->set     = &set->preallocated;
    119119  set->setsize = setsize;
    120   CPU_COPY( set->set, cpuset );
     120  CPU_COPY( cpuset, set->set );
    121121}
    122122
  • cpukit/score/src/schedulerpriorityaffinitysmp.c

    r26ccd139 r836f454  
    625625  }
    626626
    627   CPU_COPY( cpuset, node->Affinity.set );
     627  CPU_COPY( node->Affinity.set, cpuset );
    628628  return true;
    629629}
     
    661661  }
    662662
    663   CPU_COPY( node->Affinity.set, cpuset );
     663  CPU_COPY( cpuset, node->Affinity.set );
    664664
    665665  if ( _States_Is_ready( current_state ) ) {
  • testsuites/smptests/smpaffinity01/init.c

    r26ccd139 r836f454  
    178178  /* Change the affinity for each low priority task */
    179179  puts("Init - Change affinity on Low priority tasks");
    180   CPU_COPY(&cpuset1, &cpuset0);
     180  CPU_COPY(&cpuset0, &cpuset1);
    181181  for (i=0; i<cpu_count; i++){
    182182
     
    194194
    195195  puts("Init - Validate affinity on Low priority tasks");
    196   CPU_COPY(&cpuset1, &cpuset0);
     196  CPU_COPY(&cpuset0, &cpuset1);
    197197  for (i=0; i<cpu_count; i++){
    198198    CPU_CLR(i, &cpuset1);
  • testsuites/smptests/smppsxaffinity02/init.c

    r26ccd139 r836f454  
    169169  /* Change the affinity for each low priority task */
    170170  puts("Init - Change affinity on Low priority tasks");
    171   CPU_COPY(&cpuset1, &cpuset0);
     171  CPU_COPY(&cpuset0, &cpuset1);
    172172  for (i=0; i<cpu_count; i++){
    173173
     
    184184
    185185  puts("Init - Validate affinity on Low priority tasks");
    186   CPU_COPY(&cpuset1, &cpuset0);
     186  CPU_COPY(&cpuset0, &cpuset1);
    187187  for (i=0; i<cpu_count; i++){
    188188    CPU_CLR(i, &cpuset1);
  • testsuites/sptests/spcpuset01/init.c

    r26ccd139 r836f454  
    123123  CPU_FILL(&set2);
    124124
    125   CPU_COPY(&set2, &set1);
     125  CPU_COPY(&set1, &set2);
    126126
    127127  /* test if all bits clear in set2 */
  • testsuites/sptests/spcpuset01/test.c

    r26ccd139 r836f454  
    104104  CPU_SET(cpu1, &set1);
    105105  CPU_SET(cpu2, &set1);
    106   CPU_COPY(&set2, &set1);
     106  CPU_COPY(&set1, &set2);
    107107  CPU_CLR(cpu2, &set2);
    108108}
Note: See TracChangeset for help on using the changeset viewer.