summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-09-04 12:03:15 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-09-04 12:03:15 +0200
commit7db078be194469490caacac7d13bace38eaebdf5 (patch)
tree054ee351733cc9cc8a206bd6b73b05a64e4867f4 /arch
parent[ARM] 2875/1: Data Abort fixes (diff)
downloadlinux-7db078be194469490caacac7d13bace38eaebdf5.tar.xz
linux-7db078be194469490caacac7d13bace38eaebdf5.zip
[ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8
Use the correct constants. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index b2085735a2ba..826164945747 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();