diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-06-01 11:04:04 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-06-12 16:26:02 +0200 |
commit | 60c497014e34af5aa0be56d0869c67fa2b5c3786 (patch) | |
tree | b73a961cf9ea724cc2e9a96f437e180eef6f6351 /arch/s390/mm | |
parent | 36f6237ebf4dfdf62813540e962d53584ba8b271 (diff) | |
download | linux-60c497014e34af5aa0be56d0869c67fa2b5c3786.tar.gz linux-60c497014e34af5aa0be56d0869c67fa2b5c3786.tar.bz2 linux-60c497014e34af5aa0be56d0869c67fa2b5c3786.zip |
s390/mm: use correct address space when enabling DAT
Right now the kernel uses the primary address space until finally the
switch to the correct home address space will be done when the idle
PSW will be loaded within psw_idle().
Correct this and simply use the home address space when DAT is enabled
for the first time.
This doesn't really fix a bug, but fixes odd behavior.
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r-- | arch/s390/mm/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index ee6a1d3d4983..0352f9f88c73 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c @@ -81,6 +81,7 @@ void __init paging_init(void) { unsigned long max_zone_pfns[MAX_NR_ZONES]; unsigned long pgd_type, asce_bits; + psw_t psw; init_mm.pgd = swapper_pg_dir; if (VMALLOC_END > (1UL << 42)) { @@ -100,7 +101,10 @@ void __init paging_init(void) __ctl_load(S390_lowcore.kernel_asce, 1, 1); __ctl_load(S390_lowcore.kernel_asce, 7, 7); __ctl_load(S390_lowcore.kernel_asce, 13, 13); - __arch_local_irq_stosm(0x04); + psw.mask = __extract_psw(); + psw_bits(psw).t = 1; + psw_bits(psw).as = PSW_AS_HOME; + __load_psw_mask(psw.mask); sparse_memory_present_with_active_regions(MAX_NUMNODES); sparse_init(); |