]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: set STACK_END_MAGIC earlier on the init_stack
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 21 Aug 2019 10:20:51 +0000 (10:20 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Aug 2019 01:31:18 +0000 (11:31 +1000)
commite63b624501b1e1df006c1d25898c9499892b2a3a
treecc75a27e02e678d8c7e3a7f524ea1b67df88658c
parent3ad4ab118131eb3ae39b31150b7353fd31e7c292
powerpc/8xx: set STACK_END_MAGIC earlier on the init_stack

Today, the STACK_END_MAGIC is set on init_stack in start_kernel().

To avoid a false 'Thread overran stack, or stack corrupted' message
on early Oopses, setup STACK_END_MAGIC as soon as possible.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/54f67bb7ac486c1350f2fa8905cd279f94b9dfb1.1566382841.git.christophe.leroy@c-s.fr
arch/powerpc/kernel/head_8xx.S