Changes in uspace/lib/c/arch/arm32/src/atomic.c [133461c:eb630cf] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/arch/arm32/src/atomic.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/arm32/src/atomic.c
r133461c reb630cf 38 38 volatile unsigned *ras_page; 39 39 40 bool __atomic_compare_exchange_4(volatile void *mem0, void *expected0, 41 unsigned desired, bool weak, int success, int failure) 40 bool __atomic_compare_exchange_4(volatile unsigned *mem, unsigned *expected, unsigned desired, bool weak, int success, int failure) 42 41 { 43 volatile unsigned *mem = mem0;44 unsigned *expected = expected0;45 46 42 (void) success; 47 43 (void) failure; … … 86 82 } 87 83 88 unsigned short __atomic_fetch_add_2(volatile void *mem0, unsigned short val, 89 int model) 84 unsigned short __atomic_fetch_add_2(volatile unsigned short *mem, unsigned short val, int model) 90 85 { 91 volatile unsigned short *mem = mem0;92 93 86 (void) model; 94 87 … … 123 116 } 124 117 125 unsigned __atomic_fetch_add_4(volatile void *mem0, unsigned val, int model)118 unsigned __atomic_fetch_add_4(volatile unsigned *mem, unsigned val, int model) 126 119 { 127 volatile unsigned *mem = mem0;128 129 120 (void) model; 130 121 … … 159 150 } 160 151 161 unsigned __atomic_fetch_sub_4(volatile void *mem, unsigned val, int model)152 unsigned __atomic_fetch_sub_4(volatile unsigned *mem, unsigned val, int model) 162 153 { 163 154 return __atomic_fetch_add_4(mem, -val, model);
Note:
See TracChangeset
for help on using the changeset viewer.
