From fdb902b1225e1668315f38e96d2f439452c03a15 Mon Sep 17 00:00:00 2001 From: Davide Libenzi Date: Thu, 10 May 2007 22:23:20 -0700 Subject: [PATCH] signal/timer/event: eventfd wire up x86 arches This patch wires the eventfd system call to the x86 architectures. Signed-off-by: Davide Libenzi Cc: Michael Kerrisk Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/i386/kernel/syscall_table.S | 1 + arch/x86_64/ia32/ia32entry.S | 1 + include/asm-i386/unistd.h | 3 ++- include/asm-x86_64/unistd.h | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/i386/kernel/syscall_table.S b/arch/i386/kernel/syscall_table.S index d50634c74ed9..bf6adce52267 100644 --- a/arch/i386/kernel/syscall_table.S +++ b/arch/i386/kernel/syscall_table.S @@ -322,3 +322,4 @@ ENTRY(sys_call_table) .long sys_utimensat /* 320 */ .long sys_signalfd .long sys_timerfd + .long sys_eventfd diff --git a/arch/x86_64/ia32/ia32entry.S b/arch/x86_64/ia32/ia32entry.S index bdbed0a7e5e4..52be79beb306 100644 --- a/arch/x86_64/ia32/ia32entry.S +++ b/arch/x86_64/ia32/ia32entry.S @@ -718,4 +718,5 @@ ia32_sys_call_table: .quad compat_sys_utimensat /* 320 */ .quad sys_signalfd .quad sys_timerfd + .quad sys_eventfd ia32_syscall_end: diff --git a/include/asm-i386/unistd.h b/include/asm-i386/unistd.h index 1c8076a402e5..e84ace1ec8bf 100644 --- a/include/asm-i386/unistd.h +++ b/include/asm-i386/unistd.h @@ -328,10 +328,11 @@ #define __NR_utimensat 320 #define __NR_signalfd 321 #define __NR_timerfd 322 +#define __NR_eventfd 323 #ifdef __KERNEL__ -#define NR_syscalls 323 +#define NR_syscalls 324 #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR diff --git a/include/asm-x86_64/unistd.h b/include/asm-x86_64/unistd.h index 3e273b044457..ae1ed05f2814 100644 --- a/include/asm-x86_64/unistd.h +++ b/include/asm-x86_64/unistd.h @@ -628,6 +628,8 @@ __SYSCALL(__NR_epoll_pwait, sys_epoll_pwait) __SYSCALL(__NR_signalfd, sys_signalfd) #define __NR_timerfd 282 __SYSCALL(__NR_timerfd, sys_timerfd) +#define __NR_eventfd 283 +__SYSCALL(__NR_eventfd, sys_eventfd) #ifndef __NO_STUBS #define __ARCH_WANT_OLD_READDIR -- GitLab