]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Update __syscall_cp.c to use syscalls from the syscall_shim layer
authorGaulthier Gain <gaulthier.gain@uliege.be>
Wed, 29 Jan 2020 21:18:36 +0000 (22:18 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 30 Jan 2020 20:55:56 +0000 (21:55 +0100)
This patch updates __syscall_cp.c to use uk_syscall declaration from
the syscall_shim layer.

Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
patches/0007-__syscall_cp-use-syscall-shim-layer.patch [new file with mode: 0644]

diff --git a/patches/0007-__syscall_cp-use-syscall-shim-layer.patch b/patches/0007-__syscall_cp-use-syscall-shim-layer.patch
new file mode 100644 (file)
index 0000000..d9c9c5a
--- /dev/null
@@ -0,0 +1,26 @@
+From 0a1ffcddc9c4e3dfb251b8ccf153821448f97048 Mon Sep 17 00:00:00 2001
+From: Gaulthier Gain <gaulthier.gain@uliege.be>
+Date: Sat, 25 Jan 2020 15:45:06 +0100
+Subject: [PATCH] Update __syscall_cp to use syscalls from syscall shim layer
+
+Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
+---
+ src/thread/__syscall_cp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/thread/__syscall_cp.c b/src/thread/__syscall_cp.c
+index 09a2be8..e22e75b 100644
+--- a/src/thread/__syscall_cp.c
++++ b/src/thread/__syscall_cp.c
+@@ -8,7 +8,7 @@ static long sccp(syscall_arg_t nr,
+                  syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
+                  syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
+ {
+-      return (__syscall)(nr, u, v, w, x, y, z);
++      return (uk_syscall)(nr, u, v, w, x, y, z);
+ }
+
+ weak_alias(sccp, __syscall_cp_c);
+--
+2.20.1
+