From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp04.au.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 0ADA8B709B for ; Wed, 23 Jun 2010 20:04:12 +1000 (EST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp04.au.ibm.com (8.14.4/8.13.1) with ESMTP id o5N9xwjc001530 for ; Wed, 23 Jun 2010 19:59:58 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5NA4BRW1106106 for ; Wed, 23 Jun 2010 20:04:11 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o5NA4946027468 for ; Wed, 23 Jun 2010 20:04:11 +1000 From: "Ian Munsie" To: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org Subject: [PATCH 05/40] x86: add NR_syscalls_compat, make ia32 syscall table visible Date: Wed, 23 Jun 2010 20:02:46 +1000 Message-Id: <1277287401-28571-6-git-send-email-imunsie@au1.ibm.com> In-Reply-To: <1277287401-28571-1-git-send-email-imunsie@au1.ibm.com> References: <1277287401-28571-1-git-send-email-imunsie@au1.ibm.com> Cc: x86@kernel.org, "David S. Miller" , Frederic Weisbecker , Jason Baron , "H. Peter Anvin" , Steven Rostedt , Christoph Hellwig , Ingo Molnar , Paul Mackerras , Ian Munsie , Thomas Gleixner , Andrew Morton List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jason Baron Add 'NR_syscalls_compat' global for x86. Also, make 'ia32_sys_call_table' into a global. Signed-off-by: Jason Baron Signed-off-by: Ian Munsie --- arch/x86/ia32/ia32entry.S | 3 +++ arch/x86/include/asm/compat.h | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S index e790bc1..94b9022 100644 --- a/arch/x86/ia32/ia32entry.S +++ b/arch/x86/ia32/ia32entry.S @@ -503,6 +503,7 @@ END(ia32_ptregs_common) .section .rodata,"a" .align 8 +.globl ia32_sys_call_table ia32_sys_call_table: .quad sys_restart_syscall .quad sys_exit @@ -843,3 +844,5 @@ ia32_sys_call_table: .quad sys_perf_event_open .quad compat_sys_recvmmsg ia32_syscall_end: +.globl NR_syscalls_compat +NR_syscalls_compat: .int ((ia32_syscall_end - ia32_sys_call_table)/8) diff --git a/arch/x86/include/asm/compat.h b/arch/x86/include/asm/compat.h index 306160e..55109f8 100644 --- a/arch/x86/include/asm/compat.h +++ b/arch/x86/include/asm/compat.h @@ -216,4 +216,6 @@ static inline int is_compat_task(void) return current_thread_info()->status & TS_COMPAT; } +extern int NR_syscalls_compat; + #endif /* _ASM_X86_COMPAT_H */ -- 1.7.1