diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-05-28 04:03:55 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-06-13 09:58:18 -0400 |
commit | 0ccb32c983e0fe79d408e50ec1386aaf78c9a7ed (patch) | |
tree | 0af590e35acdb92acc701ae18d475180dac592ac /arch/s390/mm | |
parent | 4b8fe77ace2779e019863f9c166c15dc5bac5a24 (diff) |
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>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r-- | arch/s390/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 2489b2e917c8..44db60d9e519 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <asm/ctl_reg.h> | 40 | #include <asm/ctl_reg.h> |
41 | #include <asm/sclp.h> | 41 | #include <asm/sclp.h> |
42 | 42 | ||
43 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((__aligned__(PAGE_SIZE))); | 43 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __section(.bss..swapper_pg_dir); |
44 | 44 | ||
45 | unsigned long empty_zero_page, zero_page_mask; | 45 | unsigned long empty_zero_page, zero_page_mask; |
46 | EXPORT_SYMBOL(empty_zero_page); | 46 | EXPORT_SYMBOL(empty_zero_page); |