Make sure the init_task is aligned to the kernel thread size so we can 
locate the kernel stack properly and quickly.

Signed-off-by: Thomas Chou <[EMAIL PROTECTED]>

diff --git a/linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S 
b/linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S
index 491901c..05b6b2b 100644
--- a/linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S
+++ b/linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S
@@ -43,7 +43,7 @@ SECTIONS
      * arch/mips/kernel/init_task.c:30: warning: alignment of 
‘init_thread_union’
      * is greater than maximum object file alignment.  Using 32768
      */
-    . = ALIGN(4096);
+    . = ALIGN(8192);   /* MUST be 8192, the THREAD_SIZE */
     *(.data.init_task)
 
     *(.data)
-- 
1.5.3.5

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to