Skip to contentSkip to conversation

parisc: sendfile and sendfile64 syscall cleanups

PATCH New Helge Deller 1 participant 1 message Feb 19, 2013 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: sendfile and sendfile64 syscall cleanups

commit 375e130d5c9809c99afe56d6640b70f3c002e8ac
Date: Tue Feb 19 22:55:17 2013 +0100

Utilize the existing compat_sys_sendfile function for 64bit kernel and add wrappers for sendfile and sendfile64 to correctly handle the 32/64 bit sign extension.

arch/parisc/include/asm/unistd.h +1 -0
index f2e390f..74f801e 100644
@@ -167,6 +167,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5)	\
 #define __ARCH_WANT_SYS_FORK
 #define __ARCH_WANT_SYS_VFORK
 #define __ARCH_WANT_SYS_CLONE
+#define __ARCH_WANT_COMPAT_SYS_SENDFILE
 
 #endif /* __ASSEMBLY__ */
 
arch/parisc/kernel/sys_parisc32.c +13 -32

55 lines not on this page · raw message

arch/parisc/kernel/syscall_table.S +1 -1
index 9180719..129fd47 100644
@@ -304,7 +304,7 @@
 	ENTRY_SAME(gettid)
 	ENTRY_OURS(readahead)
 	ENTRY_SAME(tkill)
-	ENTRY_SAME(sendfile64)
+	ENTRY_DIFF(sendfile64)
 	ENTRY_COMP(futex)		/* 210 */
 	ENTRY_COMP(sched_setaffinity)
 	ENTRY_COMP(sched_getaffinity)