[PATCH] Set ARCH_MIN_TASKALIGN on ppc32

From: Benjamin Herrenschmidt
Date: Wed Apr 21 2004 - 22:52:56 EST


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@xxxxxxxxxxxxx>
To: benh@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/