s390: correct _stext offset
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 27 Jun 2018 15:32:53 +0000 (17:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 2 Jul 2018 09:24:59 +0000 (11:24 +0200)
commitc949786450d6e19ef21f0837488a3dc1554131d6
treef0a488519f9a504335fa48e5c3b866ab73d0a94a
parent183ab05ff285555c56b7f00bb4fd52d80a9513fb
s390: correct _stext offset

Avoid unnecessary rewrite of psw and merge _stext into
startup_continue. This allows to move _stext definition to vmlinux.lds.S,
where _etext is also defined and set _stext to the actual beginning of
.text at 0x100000.

This fixes the problem with setting the last .text page as
not-executable due to vmem_map_init relying on page alinged _stext and
_etext.

Fixes: bd79d6632958 ("s390/decompressor: trim the kernel image up to 1M")
Reported-by: Nils Hoppmann <niho@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/head64.S
arch/s390/kernel/vmlinux.lds.S