]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[S390] allow all addressing modes
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 10 Oct 2011 14:59:04 +0000 (16:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 10 Oct 2011 14:58:56 +0000 (16:58 +0200)
commit645131404d17556e59fc36ec166dcc160c000f5d
tree743fc5bcfee961925e67dbf92ddf7e08e1f609af
parentc5b9a4f1e4c9477c91ee0c5999e7466c2188457d
[S390] allow all addressing modes

The user space program can change its addressing mode between the
24-bit, 31-bit and the 64-bit mode if the kernel is 64 bit. Currently
the kernel always forces the standard amode on signal delivery and
signal return and on ptrace: 64-bit for a 64-bit process, 31-bit for
a compat process and 31-bit kernels. Change the signal and ptrace code
to allow the full range of addressing modes. Signal handlers are
run in the standard addressing mode for the process.

One caveat is that even an 31-bit compat process can switch to the
64-bit mode. The next signal will switch back into the 31-bit mode
and there is no room in the 31-bit compat signal frame to store the
information that the program came from the 64-bit mode.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ptrace.h
arch/s390/kernel/compat_signal.c
arch/s390/kernel/ptrace.c
arch/s390/kernel/signal.c