Commit 8a87e758 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] proper alignment of init task in kernel image

From: Matt Mackall <mpm@selenic.com>

This keeps the alignment of the init task matched with the stack size.
parent 2c0e195b
......@@ -20,7 +20,7 @@ EXPORT_SYMBOL(init_mm);
/*
* Initial thread structure.
*
* We need to make sure that this is 8192-byte aligned due to the
* We need to make sure that this is THREAD_SIZE aligned due to the
* way process stacks are handled. This is done by having a special
* "init_task" linker map entry..
*/
......
......@@ -3,6 +3,7 @@
*/
#include <asm-generic/vmlinux.lds.h>
#include <asm/thread_info.h>
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)
......@@ -48,7 +49,7 @@ SECTIONS
_edata = .; /* End of data section */
. = ALIGN(8192); /* init_task */
. = ALIGN(THREAD_SIZE); /* init_task */
.data.init_task : { *(.data.init_task) }
/* will be freed after init */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment