[PATCH 2/2] [POWERPC] Fix kernel stack allocation alignment

2008-04-10 Thread Benjamin Herrenschmidt
The powerpc kernel stacks need to be naturally aligned, as they contain the thread info at the bottom, which is obtained by clearing the low bits of the stack pointer. However, when using 64K pages (the stack is smaller than a page), we use kmalloc to allocate it, which doesn't provide that guaran

[PATCH 2/2] [POWERPC] Fix kernel stack allocation alignment

2008-04-09 Thread Benjamin Herrenschmidt
The powerpc kernel stacks need to be naturally aligned, as they contain the thread info at the bottom, which is obtained by clearing the low bits of the stack pointer. However, when using 64K pages (the stack is smaller than a page), we use kmalloc to allocate it, which doesn't provide that guaran