From: Russell King Date: Sun, 4 Sep 2005 10:03:15 +0000 (+0100) Subject: [ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8 X-Git-Tag: v2.6.14-rc1~774^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7db078be194469490caacac7d13bace38eaebdf5;p=linux-2.6-omap-h63xx.git [ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8 Use the correct constants. Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index b2085735a2b..82616494574 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -110,7 +110,7 @@ int __cpuinit __cpu_up(unsigned int cpu) * We need to tell the secondary core where to find * its stack and the page tables. */ - secondary_data.stack = (void *)idle->thread_info + THREAD_SIZE - 8; + secondary_data.stack = (void *)idle->thread_info + THREAD_START_SP; secondary_data.pgdir = virt_to_phys(pgd); wmb();