summaryrefslogtreecommitdiff
path: root/arch/tile/kernel
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-05-05 17:20:03 (GMT)
committerChris Metcalf <cmetcalf@ezchip.com>2015-05-11 15:22:34 (GMT)
commit9a5d2cbe6a1623dadfd93007382b0d12d6bac894 (patch)
treec8d37206bb9539014567251e9b0a83b70eeda094 /arch/tile/kernel
parente5701b74ccfdbbb0b4d9abcc7d0c569bf5e5375b (diff)
downloadlinux-9a5d2cbe6a1623dadfd93007382b0d12d6bac894.tar.xz
tile: set up initial stack top to honor STACK_TOP_DELTA
For some reason this was never changed to match the rest of the code where we always initialize the kernel sp 64 bytes below the top of the page. This is generally harmless, but it does mean that if you do a dump_stack() early on in kernel boot you see a bogus warning about stack overrun. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Diffstat (limited to 'arch/tile/kernel')
-rw-r--r--arch/tile/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c
index 6873f00..2c8304c 100644
--- a/arch/tile/kernel/setup.c
+++ b/arch/tile/kernel/setup.c
@@ -71,7 +71,7 @@ static unsigned long __initdata node_percpu[MAX_NUMNODES];
* per-CPU stack and boot info.
*/
DEFINE_PER_CPU(unsigned long, boot_sp) =
- (unsigned long)init_stack + THREAD_SIZE;
+ (unsigned long)init_stack + THREAD_SIZE - STACK_TOP_DELTA;
#ifdef CONFIG_SMP
DEFINE_PER_CPU(unsigned long, boot_pc) = (unsigned long)start_kernel;