]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Implement the compat_sys_call_table in C
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Jan 2015 16:42:32 +0000 (16:42 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 27 Jan 2015 09:38:07 +0000 (09:38 +0000)
commit6935fefd216c46621a6246880a2f2486a94ed5e4
treea0c06d493a7e852ed9e736c42be740927c21094d
parente6a24a8e02b414944a99bc8cc01621bf29b9106c
arm64: Implement the compat_sys_call_table in C

Unlike the sys_call_table[], the compat one was implemented in sys32.S
making it impossible to notice discrepancies between the number of
compat syscalls and the __NR_compat_syscalls macro, the latter having to
be defined in asm/unistd.h as including asm/unistd32.h would cause
conflicts on __NR_* definitions. With this patch, incorrect
__NR_compat_syscalls values will result in a build-time error.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
arch/arm64/include/asm/unistd.h
arch/arm64/kernel/Makefile
arch/arm64/kernel/entry.S
arch/arm64/kernel/entry32.S [new file with mode: 0644]
arch/arm64/kernel/sys32.S [deleted file]
arch/arm64/kernel/sys32.c [new file with mode: 0644]