Skip to contentSkip to conversation

signalfd/timerfd v4 - signalfd wire up x86_64 arch ...

PATCH New Davide Libenzi 1 participant 1 message Mar 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 4/9 signalfd/timerfd v4 - signalfd wire up x86_64 arch ...

This patch wire the signalfd system call to the x86_64 architecture.

- Davide

include/asm-x86_64/unistd.h +3 -1
Index: linux-2.6.20.ep2/include/asm-x86_64/unistd.h
===================================================================
@@ -619,8 +619,10 @@
 __SYSCALL(__NR_vmsplice, sys_vmsplice)
 #define __NR_move_pages		279
 __SYSCALL(__NR_move_pages, sys_move_pages)
+#define __NR_signalfd		280
+__SYSCALL(__NR_signalfd, sys_signalfd)
 
-#define __NR_syscall_max __NR_move_pages
+#define __NR_syscall_max __NR_signalfd
 
 #ifndef __NO_STUBS
 #define __ARCH_WANT_OLD_READDIR
arch/x86_64/ia32/ia32entry.S +4 -2
Index: linux-2.6.20.ep2/arch/x86_64/ia32/ia32entry.S
===================================================================
@@ -714,8 +714,10 @@
 	.quad compat_sys_get_robust_list
 	.quad sys_splice
 	.quad sys_sync_file_range
-	.quad sys_tee
+	.quad sys_tee			/* 315 */
 	.quad compat_sys_vmsplice
 	.quad compat_sys_move_pages
 	.quad sys_getcpu
-ia32_syscall_end:		
+	.quad sys_epoll_pwait
+	.quad sys_signalfd		/* 320 */
+ia32_syscall_end: