| 471 | } |
| 472 | |
| 473 | static __inline int |
| 474 | atomic_cmpset_rel_16(volatile uint16_t *_ptr, uint16_t _old, uint16_t _new) |
| 475 | { |
| 476 | int ret; |
| 477 | |
| 478 | dmb(); |
| 479 | ATOMIC_CMPSET_CODE(ret, "h"); |
| 480 | return (ret); |
| 481 | } |
| 482 | |
| 483 | static __inline int |
| 484 | atomic_cmpset_32(volatile uint32_t *_ptr, uint32_t _old, uint32_t _new) |