From e5662feb044ea940f4ec697434c1a9bd96c02ad3 Mon Sep 17 00:00:00 2001 From: lordrasmus Date: Tue, 30 May 2023 11:59:15 +0200 Subject: c6x compile fix vdso support --- libc/sysdeps/linux/c6x/bits/syscalls.h | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 libc/sysdeps/linux/c6x/bits/syscalls.h (limited to 'libc/sysdeps/linux/c6x') diff --git a/libc/sysdeps/linux/c6x/bits/syscalls.h b/libc/sysdeps/linux/c6x/bits/syscalls.h old mode 100644 new mode 100755 index 70b708d70..451271725 --- a/libc/sysdeps/linux/c6x/bits/syscalls.h +++ b/libc/sysdeps/linux/c6x/bits/syscalls.h @@ -167,11 +167,15 @@ type name(C_DECL_ARGS_##nargs(args)) { \ return (type)INLINE_SYSCALL_NOERR(name, nargs, C_ARGS_##nargs(args)); \ } +#define SYSCALL_FUNC_BODY(nargs, type, name, args...) \ + return (type)INLINE_SYSCALL(name, nargs, C_ARGS_##nargs(args)); + #define _syscall0(args...) SYSCALL_FUNC(0, args) #define _syscall_noerr0(args...) SYSCALL_NOERR_FUNC(0, args) #define _syscall1(args...) SYSCALL_FUNC(1, args) #define _syscall_noerr1(args...) SYSCALL_NOERR_FUNC(1, args) #define _syscall2(args...) SYSCALL_FUNC(2, args) +#define _syscall2_body(args...) SYSCALL_FUNC_BODY(2, args) #define _syscall3(args...) SYSCALL_FUNC(3, args) #define _syscall4(args...) SYSCALL_FUNC(4, args) #define _syscall5(args...) SYSCALL_FUNC(5, args) -- cgit v1.2.3