X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Friscv64%2Fsyscall_arch.h;h=3e0804efe37fe8413081e54005e0d8638935f8a2;hb=8eb49e0485fc547eead9e47200bbee6d81f391c1;hp=1aaeb63138d59598d6c280b564bfdbe36d34693a;hpb=1a28c6eade3046e73da0e80bbb7c377f24f514c7;p=musl diff --git a/arch/riscv64/syscall_arch.h b/arch/riscv64/syscall_arch.h index 1aaeb631..3e0804ef 100644 --- a/arch/riscv64/syscall_arch.h +++ b/arch/riscv64/syscall_arch.h @@ -3,7 +3,7 @@ #define __asm_syscall(...) \ __asm__ __volatile__ ("ecall\n\t" \ - : "+r"(a0) : __VA_ARGS__ : "memory"); \ + : "=r"(a0) : __VA_ARGS__ : "memory"); \ return a0; \ static inline long __syscall0(long n)