diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-09-02 15:08:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-09-03 11:07:36 +0200 |
commit | 29f7d31782dc7b03da119aba3fa09085500e1b0c (patch) | |
tree | eafe1b84e081dc65a8e1ad8bc74ed2bd52947f18 /testsuites/smptests/smpatomic01 | |
parent | bsp/lm4f120: new BSP to support TI LM4F120 XL LaunchPad board (diff) | |
download | rtems-29f7d31782dc7b03da119aba3fa09085500e1b0c.tar.bz2 |
score: Use unsigned long for atomic integers
Use unsigned long instead of uint_fast32_t since C11 provides only a
ATOMIC_LONG_LOCK_FREE macro constant. This makes it also possible to
use properly typed integer literals like 123UL. It is now clear which
compatible type should be used for the atomic integer.
Diffstat (limited to 'testsuites/smptests/smpatomic01')
-rw-r--r-- | testsuites/smptests/smpatomic01/tasks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/smptests/smpatomic01/tasks.c b/testsuites/smptests/smpatomic01/tasks.c index 65ad81b0b9..4dd2ff68d3 100644 --- a/testsuites/smptests/smpatomic01/tasks.c +++ b/testsuites/smptests/smpatomic01/tasks.c @@ -52,12 +52,12 @@ rtems_task Test_task( /* Print that the task is up and running. */ /* test relaxed barrier */ - ATOMIC_LOAD_NO_BARRIER(uint, Uint, uint_fast32_t, cpu_num, ATOMIC_ORDER_RELAXED); + ATOMIC_LOAD_NO_BARRIER(ulong, Ulong, unsigned long, cpu_num, ATOMIC_ORDER_RELAXED); ATOMIC_LOAD_NO_BARRIER(ptr, Pointer, uintptr_t, cpu_num, ATOMIC_ORDER_RELAXED); /* test acquire barrier */ - ATOMIC_LOAD_NO_BARRIER(uint, Uint, uint_fast32_t, cpu_num, ATOMIC_ORDER_ACQUIRE); + ATOMIC_LOAD_NO_BARRIER(ulong, Ulong, unsigned long, cpu_num, ATOMIC_ORDER_ACQUIRE); ATOMIC_LOAD_NO_BARRIER(ptr, Pointer, unsigned long, cpu_num, ATOMIC_ORDER_ACQUIRE); |