X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Friscv64%2Fsyscall_arch.h;h=7fd042cd4ad37695f84d87372ff830cf5aa3b22b;hb=59b64ff686cef2a87e9552658b2c8d2531f87176;hp=1aaeb63138d59598d6c280b564bfdbe36d34693a;hpb=0a48860c27a8eb291bcc7616ea9eb073dc660cab;p=musl diff --git a/arch/riscv64/syscall_arch.h b/arch/riscv64/syscall_arch.h index 1aaeb631..7fd042cd 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) @@ -74,3 +74,5 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo /* We don't have a clock_gettime function. #define VDSO_CGT_SYM "__vdso_clock_gettime" #define VDSO_CGT_VER "LINUX_2.6" */ + +#define IPC_64 0