powerpc: regain entire stack space
thread_info is not anymore in the stack, so the entire stack can now be used. There is also no risk anymore of corrupting task_cpu(p) with a stack overflow so the patch removes the test. When doing this, an explicit test for NULL stack pointer is needed in validate_sp() as it is not anymore implicitely covered by the sizeof(thread_info) gap. In the meantime, with the previous patch all pointers to the stacks are not anymore pointers to thread_info so this patch changes them to void* Signed-off-by:Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/irq.h 5 additions, 5 deletionsarch/powerpc/include/asm/irq.h
- arch/powerpc/include/asm/processor.h 1 addition, 2 deletionsarch/powerpc/include/asm/processor.h
- arch/powerpc/kernel/asm-offsets.c 0 additions, 1 deletionarch/powerpc/kernel/asm-offsets.c
- arch/powerpc/kernel/entry_32.S 4 additions, 10 deletionsarch/powerpc/kernel/entry_32.S
- arch/powerpc/kernel/irq.c 9 additions, 10 deletionsarch/powerpc/kernel/irq.c
- arch/powerpc/kernel/misc_32.S 2 additions, 4 deletionsarch/powerpc/kernel/misc_32.S
- arch/powerpc/kernel/process.c 13 additions, 19 deletionsarch/powerpc/kernel/process.c
- arch/powerpc/kernel/setup_64.c 4 additions, 4 deletionsarch/powerpc/kernel/setup_64.c
Loading
Please register or sign in to comment