Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e79a7fcc authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86-64, ia32: Move compat_ni_syscall into C and its own file



Move compat_ni_syscall out of ia32entry.S and into its own .c file.
Although this is a trivial function, it is not performance-critical,
and this will simplify further cleanups.

Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent b7641d2c
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3,6 +3,7 @@
#
#


obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o
obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o
obj-$(CONFIG_IA32_EMULATION) += nosyscall.o


sysv-$(CONFIG_SYSVIPC) := ipc32.o
sysv-$(CONFIG_SYSVIPC) := ipc32.o
obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
+0 −3
Original line number Original line Diff line number Diff line
@@ -453,9 +453,6 @@ ia32_badsys:
	movq $-ENOSYS,%rax
	movq $-ENOSYS,%rax
	jmp ia32_sysret
	jmp ia32_sysret


quiet_ni_syscall:
	movq $-ENOSYS,%rax
	ret
	CFI_ENDPROC
	CFI_ENDPROC
	
	
	.macro PTREGSCALL label, func, arg
	.macro PTREGSCALL label, func, arg
+7 −0
Original line number Original line Diff line number Diff line
#include <linux/kernel.h>
#include <linux/errno.h>

long compat_ni_syscall(void)
{
	return -ENOSYS;
}