OSDN Git Service

s390/entry: rework entering DAT-on mode on CPU restart
authorAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 18 Apr 2023 15:40:37 +0000 (17:40 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 3 Jul 2023 09:19:40 +0000 (11:19 +0200)
commitedbe28989847308406101256e10fdfb567ca9eb1
treeaa81b965e5aa5e889e297f7748338987c550d03c
parentb492425c7073c308503eea9a1eec4b03d6e42ef0
s390/entry: rework entering DAT-on mode on CPU restart

Instead of enforcing PSW_MASK_DAT bit on previously stored
in lowcore restart_psw.mask use the PSW_KERNEL_BITS mask
(which contains PSW_MASK_DAT) directly.

As result, the PSW mask stored in lowcore is only used to
enter the CPU restart routine, while PSW_KERNEL_BITS is
used to enter the kernel code - similarily to commit
64ea2977add2 ("s390/mm: start kernel with DAT enabled").

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/entry.S