GNU toolchain for RISC-V, including GCC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
221 B

#include <asm-generic/unistd.h>
#define __NR_sysriscv __NR_arch_specific_syscall
#ifndef __riscv_atomic
__SYSCALL(__NR_sysriscv, sys_sysriscv)
#endif
#define RISCV_ATOMIC_CMPXCHG 1
#define RISCV_ATOMIC_CMPXCHG64 2