aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/pgtable.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-05-28 10:03:55 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-06-13 15:58:18 +0200
commit0ccb32c983e0fe79d408e50ec1386aaf78c9a7ed (patch)
tree0af590e35acdb92acc701ae18d475180dac592ac /arch/s390/include/asm/pgtable.h
parents390: dump_stack: fill in arch description (diff)
downloadlinux-dev-0ccb32c983e0fe79d408e50ec1386aaf78c9a7ed.tar.xz
linux-dev-0ccb32c983e0fe79d408e50ec1386aaf78c9a7ed.zip
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/include/asm/pgtable.h')
-rw-r--r--arch/s390/include/asm/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index 3038edb12cad..37e1aa9bf84c 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -32,7 +32,7 @@
#include <asm/bug.h>
#include <asm/page.h>
-extern pgd_t swapper_pg_dir[] __attribute__ ((aligned (4096)));
+extern pgd_t swapper_pg_dir[];
extern void paging_init(void);
extern void vmem_map_init(void);
pmd_t *vmem_pmd_alloc(void);