[S390] Fix alignment of initial kernel stack.
We need an alignment of 16384 bytes for the initial kernel stack if the kernel is configured for 16384 bytes stacks but the linker script currently guarantees only an alignment of 8192 bytes. So fix this and simply use THREAD_SIZE as alignment value which will always do the right thing. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
2944a5c971
commit
0778dc3a62
@@ -2,6 +2,7 @@
|
||||
* Written by Martin Schwidefsky (schwidefsky@de.ibm.com)
|
||||
*/
|
||||
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm-generic/vmlinux.lds.h>
|
||||
|
||||
@@ -86,7 +87,7 @@ SECTIONS
|
||||
}
|
||||
_edata = .; /* End of data section */
|
||||
|
||||
. = ALIGN(2 * PAGE_SIZE); /* init_task */
|
||||
. = ALIGN(THREAD_SIZE); /* init_task */
|
||||
.data.init_task : {
|
||||
*(.data.init_task)
|
||||
}
|
||||
|
Reference in New Issue
Block a user