[S390] Make sure the restore psw masks are initialized.
In case of TRACE_IRQFLAGS the restore psw masks will not be initialized if noexec is turned on. This will lead to an immediate system crash. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
ab1809b4ed
commit
7af0d6f753
1 changed files with 1 additions and 3 deletions
|
@ -486,9 +486,7 @@ static void setup_addressing_mode(void)
|
||||||
if (s390_noexec) {
|
if (s390_noexec) {
|
||||||
printk("S390 execute protection active, ");
|
printk("S390 execute protection active, ");
|
||||||
set_amode_and_uaccess(PSW_ASC_SECONDARY, PSW32_ASC_SECONDARY);
|
set_amode_and_uaccess(PSW_ASC_SECONDARY, PSW32_ASC_SECONDARY);
|
||||||
return;
|
} else if (switch_amode) {
|
||||||
}
|
|
||||||
if (switch_amode) {
|
|
||||||
printk("S390 address spaces switched, ");
|
printk("S390 address spaces switched, ");
|
||||||
set_amode_and_uaccess(PSW_ASC_PRIMARY, PSW32_ASC_PRIMARY);
|
set_amode_and_uaccess(PSW_ASC_PRIMARY, PSW32_ASC_PRIMARY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue