lkml.org 
[lkml]   [2004]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Set ARCH_MIN_TASKALIGN on ppc32
From
Date
Please apply, or the task struct gets unaligned when using SLAB_DEBUG,
causing random problems with FP and Altivec.

Ben.


-----Forwarded Message-----
From: David Woodhouse <dwmw2@infradead.org>
To: benh@kernel.crashing.org
Subject: [PATCH] Set ARCH_MIN_TASKALIGN on ppc32
Date: Wed, 21 Apr 2004 22:14:23 -0400

...lest CONFIG_DEBUG_SLAB make it unaligned.

--- include/asm-ppc/processor.h~ 2004-04-21 16:38:03.000000000 -0400
+++ include/asm-ppc/processor.h 2004-04-21 21:48:48.000000000 -0400
@@ -121,6 +121,8 @@
#endif /* CONFIG_ALTIVEC */
};

+#define ARCH_MIN_TASKALIGN 16
+
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)

#define INIT_THREAD { \
--
Benjamin Herrenschmidt <benh@kernel.crashing.org>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.024 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site