Changeset dc5c303 in mainline for uspace/lib/c/arch/arm32/src/atomic.c
- Timestamp:
- 2023-12-28T13:59:23Z (2 years ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- 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
r42c2e65 rdc5c303 38 38 volatile unsigned *ras_page; 39 39 40 bool __atomic_compare_exchange_4(volatile unsigned *mem, unsigned *expected, unsigned desired, bool weak, int success, int failure) 40 bool __atomic_compare_exchange_4(volatile void *mem0, void *expected0, 41 unsigned desired, bool weak, int success, int failure) 41 42 { 43 volatile unsigned *mem = mem0; 44 unsigned *expected = expected0; 45 42 46 (void) success; 43 47 (void) failure; … … 82 86 } 83 87 84 unsigned short __atomic_fetch_add_2(volatile unsigned short *mem, unsigned short val, int model) 88 unsigned short __atomic_fetch_add_2(volatile void *mem0, unsigned short val, 89 int model) 85 90 { 91 volatile unsigned short *mem = mem0; 92 86 93 (void) model; 87 94 … … 116 123 } 117 124 118 unsigned __atomic_fetch_add_4(volatile unsigned *mem, unsigned val, int model)125 unsigned __atomic_fetch_add_4(volatile void *mem0, unsigned val, int model) 119 126 { 127 volatile unsigned *mem = mem0; 128 120 129 (void) model; 121 130 … … 150 159 } 151 160 152 unsigned __atomic_fetch_sub_4(volatile unsigned *mem, unsigned val, int model)161 unsigned __atomic_fetch_sub_4(volatile void *mem, unsigned val, int model) 153 162 { 154 163 return __atomic_fetch_add_4(mem, -val, model);
Note:
See TracChangeset
for help on using the changeset viewer.
