mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 21:19:46 +08:00

When the cmpset and fcmpset functions were refactored, the return value of the operation was discarded instead of being returned for SMP builds outside of gcc 4.x. This had the effect of turning these functions into a long busywait loop that eventually failed due to integer overflow. This patch restores the use of the return value of the atomic operations.