mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
ed1cd6deb0
commit
a7916a1de5
8 changed files with 37 additions and 54 deletions
|
@ -270,8 +270,7 @@ struct thread_struct {
|
|||
#define ARCH_MIN_TASKALIGN 16
|
||||
|
||||
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)
|
||||
#define INIT_SP_LIMIT \
|
||||
(_ALIGN_UP(sizeof(struct thread_info), 16) + (unsigned long)&init_stack)
|
||||
#define INIT_SP_LIMIT ((unsigned long)&init_stack)
|
||||
|
||||
#ifdef CONFIG_SPE
|
||||
#define SPEFSCR_INIT \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue