Commit 39b000cf authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Set ARCH_MIN_TASKALIGN on ppc32

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

From: David Woodhouse <dwmw2@infradead.org>

Without this the task struct gets unaligned when using SLAB_DEBUG, causing
random problems with FP and Altivec.
parent 366779f7
...@@ -121,6 +121,8 @@ struct thread_struct { ...@@ -121,6 +121,8 @@ struct thread_struct {
#endif /* CONFIG_ALTIVEC */ #endif /* CONFIG_ALTIVEC */
}; };
#define ARCH_MIN_TASKALIGN 16
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack) #define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)
#define INIT_THREAD { \ #define INIT_THREAD { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment