diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-08-15 04:02:13 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-08-16 06:12:52 +0300 |
commit | f6e13e0dd30b164eb444bc08c70fa1b8576e0bca (patch) | |
tree | 35ab39e652592d5456b85ae00855a791e8a4cb3f /include | |
parent | a88e424f6c3a42a38e9395726d9fd4e50a96abd2 (diff) | |
download | opensbi-f6e13e0dd30b164eb444bc08c70fa1b8576e0bca.tar.xz |
lib: Provide an atomic exchange function unsigned long
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include')
-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. |