projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setjmp: optimize x86 longjmp epilogues
[musl]
/
arch
/
riscv64
/
syscall_arch.h
diff --git
a/arch/riscv64/syscall_arch.h
b/arch/riscv64/syscall_arch.h
index
1aaeb63
..
7fd042c
100644
(file)
--- a/
arch/riscv64/syscall_arch.h
+++ b/
arch/riscv64/syscall_arch.h
@@
-3,7
+3,7
@@
#define __asm_syscall(...) \
__asm__ __volatile__ ("ecall\n\t" \
#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)
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" */
/* 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