]> git.karo-electronics.de Git - linux-beck.git/commit
s390/mm: align swapper_pg_dir to 16k
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 28 May 2016 08:03:55 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:18 +0000 (15:58 +0200)
commit0ccb32c983e0fe79d408e50ec1386aaf78c9a7ed
tree0af590e35acdb92acc701ae18d475180dac592ac
parent4b8fe77ace2779e019863f9c166c15dc5bac5a24
s390/mm: align swapper_pg_dir to 16k

The segment/region table that is part of the kernel image must be
properly aligned to 16k in order to make the crdte inline assembly
work.
Otherwise it will calculate a wrong segment/region table start address
and access incorrect memory locations if the swapper_pg_dir is not
aligned to 16k.

Therefore define BSS_FIRST_SECTIONS in order to put the swapper_pg_dir
at the beginning of the bss section and also align the bss section to
16k just like other architectures did.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/kernel/vmlinux.lds.S
arch/s390/mm/init.c