mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 07:09:25 +08:00
Fix atomic_load_32()
This commit is contained in:
parent
44c5fe27d6
commit
2a60dfb89f
@ -1002,7 +1002,7 @@ atomic_load_32(volatile uint32_t *p)
|
|||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
|
|
||||||
#if defined(_RTEMS_BSD_MACHINE_ATOMIC_USE_ATOMIC)
|
#if defined(_RTEMS_BSD_MACHINE_ATOMIC_USE_ATOMIC)
|
||||||
std::atomic_int *q =
|
std::atomic_uint_least32_t *q =
|
||||||
reinterpret_cast<std::atomic_uint_least32_t *>(const_cast<uint32_t *>(p));
|
reinterpret_cast<std::atomic_uint_least32_t *>(const_cast<uint32_t *>(p));
|
||||||
|
|
||||||
tmp = q->load(std::memory_order_relaxed);
|
tmp = q->load(std::memory_order_relaxed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user