Przeglądaj źródła

c6x compile fix vdso support

lordrasmus 2 lat temu
rodzic
commit
e5662feb04
2 zmienionych plików z 7 dodań i 0 usunięć
  1. 3 0
      ldso/include/dl-defs.h
  2. 4 0
      libc/sysdeps/linux/c6x/bits/syscalls.h

+ 3 - 0
ldso/include/dl-defs.h

@@ -76,6 +76,9 @@ typedef struct {
 /* arch specific defines */
 #include <dl-sysdep.h>
 #endif
+#ifdef __TARGET_c6x__
+#include <dl-sysdep.h>
+#endif
 #endif
 
 /* Provide a means for a port to pass additional arguments to the _dl_start

+ 4 - 0
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)