diff options
Diffstat (limited to 'include/sbi/riscv_atomic.h')
-rw-r--r-- | include/sbi/riscv_atomic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi/riscv_atomic.h b/include/sbi/riscv_atomic.h index 40efb68..8543f4d 100644 --- a/include/sbi/riscv_atomic.h +++ b/include/sbi/riscv_atomic.h @@ -35,6 +35,9 @@ long arch_atomic_xchg(atomic_t *atom, long newval); unsigned int atomic_raw_xchg_uint(volatile unsigned int *ptr, unsigned int newval); + +unsigned long atomic_raw_xchg_ulong(volatile unsigned long *ptr, + unsigned long newval); /** * Set a bit in an atomic variable and return the new value. * @nr : Bit to set. |