Skip to content

Commit

Permalink
x86-64, ia32: Move compat_ni_syscall into C and its own file
Browse files Browse the repository at this point in the history
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: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
H. Peter Anvin committed Nov 17, 2011
1 parent b7641d2 commit e79a7fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions arch/x86/ia32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions arch/x86/ia32/ia32entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions arch/x86/ia32/nosyscall.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <linux/kernel.h>
#include <linux/errno.h>

long compat_ni_syscall(void)
{
return -ENOSYS;
}

0 comments on commit e79a7fc

Please sign in to comment.