s390/compat: convert system call wrappers to C part 01
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 27 Feb 2014 08:52:01 +0000 (09:52 +0100)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 4 Mar 2014 08:05:38 +0000 (09:05 +0100)
Introduce a new compat_wrap.c file which contains the s390 specific compat
system call wrappers.
The s390 specific system call wrappers only perform sign, zero and pointer
conversion of system call arguments before actually calling the non-compat
system call.

Therefore introduce COMPAT_SYSCALL_WRAPx macros which generate C code that
is nearly identical to the assembly code. This has the advantage that the
compile will generate correct code, and we avoid the frequent copy-paste
errors seen in the compat_wrapper.S file.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/kernel/Makefile
arch/s390/kernel/compat_wrap.c [new file with mode: 0644]
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/syscalls.S

Simple merge
Simple merge
Simple merge
Simple merge