From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759765AbXF0Cpd (ORCPT ); Tue, 26 Jun 2007 22:45:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755184AbXF0CoY (ORCPT ); Tue, 26 Jun 2007 22:44:24 -0400 Received: from x35.xmailserver.org ([64.71.152.41]:3555 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758135AbXF0CoW (ORCPT ); Tue, 26 Jun 2007 22:44:22 -0400 X-AuthUser: davidel@xmailserver.org From: Davide Libenzi To: Linux Kernel Mailing List Date: Tue, 26 Jun 2007 19:44:18 -0700 Subject: [patch 3/3] MAP_NOZERO - wire sys_brk2() to the x86 family MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Wires up sys_brk2() to the x86 family. Signed-off-by: Davide Libenzi - Davide --- 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(-) Index: linux-2.6.mod/arch/i386/kernel/syscall_table.S =================================================================== --- linux-2.6.mod.orig/arch/i386/kernel/syscall_table.S 2007-06-25 19:14:46.000000000 -0700 +++ linux-2.6.mod/arch/i386/kernel/syscall_table.S 2007-06-26 18:08:30.000000000 -0700 @@ -323,3 +323,4 @@ .long sys_signalfd .long sys_timerfd .long sys_eventfd + .long sys_brk2 Index: linux-2.6.mod/arch/x86_64/ia32/ia32entry.S =================================================================== --- linux-2.6.mod.orig/arch/x86_64/ia32/ia32entry.S 2007-06-25 19:14:46.000000000 -0700 +++ linux-2.6.mod/arch/x86_64/ia32/ia32entry.S 2007-06-26 18:08:30.000000000 -0700 @@ -719,4 +719,5 @@ .quad compat_sys_signalfd .quad compat_sys_timerfd .quad sys_eventfd + .quad sys_brk2 ia32_syscall_end: Index: linux-2.6.mod/include/asm-i386/unistd.h =================================================================== --- linux-2.6.mod.orig/include/asm-i386/unistd.h 2007-06-25 19:14:46.000000000 -0700 +++ linux-2.6.mod/include/asm-i386/unistd.h 2007-06-26 18:08:30.000000000 -0700 @@ -329,10 +329,11 @@ #define __NR_signalfd 321 #define __NR_timerfd 322 #define __NR_eventfd 323 +#define __NR_brk2 324 #ifdef __KERNEL__ -#define NR_syscalls 324 +#define NR_syscalls 325 #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR Index: linux-2.6.mod/include/asm-x86_64/unistd.h =================================================================== --- linux-2.6.mod.orig/include/asm-x86_64/unistd.h 2007-06-25 19:14:46.000000000 -0700 +++ linux-2.6.mod/include/asm-x86_64/unistd.h 2007-06-26 18:08:30.000000000 -0700 @@ -630,6 +630,8 @@ __SYSCALL(__NR_timerfd, sys_timerfd) #define __NR_eventfd 284 __SYSCALL(__NR_eventfd, sys_eventfd) +#define __NR_brk2 285 +__SYSCALL(__NR_brk2, sys_brk2) #ifndef __NO_STUBS #define __ARCH_WANT_OLD_READDIR