]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 4 Sep 2005 10:03:15 +0000 (11:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 4 Sep 2005 10:03:15 +0000 (11:03 +0100)
Use the correct constants.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp.c

index b2085735a2baf1833c90ab1ad9c237d58e869e28..826164945747523fa93712d9d0575051b511ccb7 100644 (file)
@@ -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();