s390/sclp: fix addressing mode clobber
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 31 Oct 2012 16:14:39 +0000 (17:14 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 6 Nov 2012 21:39:51 +0000 (22:39 +0100)
commit99e639b791f5cfae0b8d42f5fe6c1e8839932bea
treecc4e2ff1f0c903aa56e2156bfaeda6ba43bae8bf
parent619506d5dabb49b7f223a4f2f6b8d697574dd799
s390/sclp: fix addressing mode clobber

The early mini sclp driver may be called in zArch mode either in
31 or 64 bit addressing mode.
If called in 31 bit addressing mode the new external interrupt psw
however would switch to 64 bit addressing mode. This would cause an
addressing exception within the interrupt handler, since the code
didn't expect the zArch/31 bit addressing mode combination.

Fix this by setting the new psw addressing mode bits so they fit
the current addressing mode.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/sclp.S