diff --git a/include/urcu/uatomic/loongarch.h b/include/urcu/uatomic/loongarch.h index f41302a2..dcf9e935 100644 --- a/include/urcu/uatomic/loongarch.h +++ b/include/urcu/uatomic/loongarch.h @@ -32,6 +32,11 @@ extern "C" { #endif +/* + * LoongArch implements byte and short atomics with LL/SC instructions, + * which retry if the cache line is modified concurrently between LL and + * SC. + */ #define UATOMIC_HAS_ATOMIC_BYTE #define UATOMIC_HAS_ATOMIC_SHORT