| 819 | |
| 820 | #ifdef __mips_n64 |
| 821 | static __inline unsigned long |
| 822 | atomic_swap_long(volatile unsigned long *ptr, const unsigned long value) |
| 823 | { |
| 824 | unsigned long retval; |
| 825 | |
| 826 | retval = *ptr; |
| 827 | |
| 828 | while (!atomic_fcmpset_64((volatile uint64_t *)ptr, |
| 829 | (uint64_t *)&retval, value)) |
| 830 | ; |
| 831 | return (retval); |
| 832 | } |
| 833 | #else |
| 834 | static __inline unsigned long |
| 835 | atomic_swap_long(volatile unsigned long *ptr, const unsigned long value) |
nothing calls this directly
no test coverage detected