]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda4d4c42ca507bbd13648cc6072a2804f6ddf548
treecc4e2ff1f0c903aa56e2156bfaeda6ba43bae8bf
parent670b4c5df1b0eddb9835459023dfc377485deaf0
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