tile: set up initial stack top to honor STACK_TOP_DELTA
[linux-2.6-block.git] / arch / tile / kernel / setup.c
index 6873f006f7d04fb1e71f8e9be386854431acb513..2c8304c8a2cdf1f1209c56053bb0f0a9d8953a88 100644 (file)
@@ -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;