Ignore:
Timestamp:
Mar 5, 2015, 10:51:25 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f3a57820
Parents:
7d6e94b
Message:

score: Add compiler memory barrier to atomic ops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/cpustdatomic.h

    r7d6e94b r7183f1cd  
    180180#else
    181181  (void) order;
     182  RTEMS_COMPILER_MEMORY_BARRIER();
    182183  return *obj;
    183184#endif
     
    192193#else
    193194  (void) order;
     195  RTEMS_COMPILER_MEMORY_BARRIER();
    194196  return *obj;
    195197#endif
     
    204206#else
    205207  (void) order;
     208  RTEMS_COMPILER_MEMORY_BARRIER();
    206209  return (void *) *obj;
    207210#endif
     
    217220  (void) order;
    218221  *obj = desired;
     222  RTEMS_COMPILER_MEMORY_BARRIER();
    219223#endif
    220224}
     
    229233  (void) order;
    230234  *obj = desired;
     235  RTEMS_COMPILER_MEMORY_BARRIER();
    231236#endif
    232237}
     
    241246  (void) order;
    242247  *obj = (uintptr_t) desired;
     248  RTEMS_COMPILER_MEMORY_BARRIER();
    243249#endif
    244250}
Note: See TracChangeset for help on using the changeset viewer.