Changeset 133461c in mainline for uspace/lib/c/arch/arm32/src/atomic.c
- Timestamp:
- 2023-10-22T17:49:28Z (13 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1c6c3e1d, cc73f6d4
- Parents:
- 78f0422c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 17:44:39)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 17:49:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/arm32/src/atomic.c
r78f0422c r133461c 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.