From 53d37cecb5a68d15052d9ac6a10974f2750ddec2 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 11 Nov 2011 15:48:42 -0800 Subject: [PATCH] --- yaml --- r: 285907 b: refs/heads/master c: e79a7fccfb2ab10f8753ac634a1c8473e870ae6c h: refs/heads/master i: 285905: dde97a9aa372cba3234639e9e9a39d0301ee1f25 285903: 507403224e61d4f22f116da78a9e39dc8896f0e0 v: v3 --- [refs] | 2 +- trunk/arch/x86/ia32/Makefile | 1 + trunk/arch/x86/ia32/ia32entry.S | 3 --- trunk/arch/x86/ia32/nosyscall.c | 7 +++++++ 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 trunk/arch/x86/ia32/nosyscall.c diff --git a/[refs] b/[refs] index c79b306ac500..1334f90611fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b7641d2c83aa10031bf45afd82619bfaaedcbc6f +refs/heads/master: e79a7fccfb2ab10f8753ac634a1c8473e870ae6c diff --git a/trunk/arch/x86/ia32/Makefile b/trunk/arch/x86/ia32/Makefile index 52d0ccfcf6ea..eea9a1c77d38 100644 --- a/trunk/arch/x86/ia32/Makefile +++ b/trunk/arch/x86/ia32/Makefile @@ -3,6 +3,7 @@ # obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o +obj-$(CONFIG_IA32_EMULATION) += nosyscall.o sysv-$(CONFIG_SYSVIPC) := ipc32.o obj-$(CONFIG_IA32_EMULATION) += $(sysv-y) diff --git a/trunk/arch/x86/ia32/ia32entry.S b/trunk/arch/x86/ia32/ia32entry.S index a6253ec1b284..59538a777695 100644 --- a/trunk/arch/x86/ia32/ia32entry.S +++ b/trunk/arch/x86/ia32/ia32entry.S @@ -453,9 +453,6 @@ ia32_badsys: movq $-ENOSYS,%rax jmp ia32_sysret -quiet_ni_syscall: - movq $-ENOSYS,%rax - ret CFI_ENDPROC .macro PTREGSCALL label, func, arg diff --git a/trunk/arch/x86/ia32/nosyscall.c b/trunk/arch/x86/ia32/nosyscall.c new file mode 100644 index 000000000000..51ecd5b4e787 --- /dev/null +++ b/trunk/arch/x86/ia32/nosyscall.c @@ -0,0 +1,7 @@ +#include +#include + +long compat_ni_syscall(void) +{ + return -ENOSYS; +}