s390/kaslr: provide kaslr_enabled() function
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 31 Mar 2023 13:03:22 +0000 (15:03 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 13 Apr 2023 15:36:25 +0000 (17:36 +0200)
commitbb87190c9d46c4285696e071d5972a534bb107cc
tree0e260e3dbbc87443854a8eadd665db921db8f516
parent11018ef90ce73d9de8ac6e565c00cc8631b46328
s390/kaslr: provide kaslr_enabled() function

Just like other architectures provide a kaslr_enabled() function, instead
of directly accessing a global variable.

Also pass the renamed __kaslr_enabled variable from the decompressor to the
kernel, so that kalsr_enabled() is available there too. This will be used
by a subsequent patch which randomizes the module base load address.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/boot.h
arch/s390/boot/ipl_parm.c
arch/s390/boot/pgm_check_info.c
arch/s390/boot/startup.c
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c