From: Jason Baron <jba...@redhat.com> Add 'NR_syscalls_compat' global for x86. Also, make 'ia32_sys_call_table' into a global.
Signed-off-by: Jason Baron <jba...@redhat.com> Signed-off-by: Ian Munsie <imun...@au1.ibm.com> --- 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 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev