提交 9a5d2cbe 编写于 作者: C Chris Metcalf

tile: set up initial stack top to honor STACK_TOP_DELTA

For some reason this was never changed to match the rest of the
code where we always initialize the kernel sp 64 bytes below
the top of the page.  This is generally harmless, but it does
mean that if you do a dump_stack() early on in kernel boot you
see a bogus warning about stack overrun.
Signed-off-by: NChris Metcalf <cmetcalf@ezchip.com>
上级 e5701b74
...@@ -71,7 +71,7 @@ static unsigned long __initdata node_percpu[MAX_NUMNODES]; ...@@ -71,7 +71,7 @@ static unsigned long __initdata node_percpu[MAX_NUMNODES];
* per-CPU stack and boot info. * per-CPU stack and boot info.
*/ */
DEFINE_PER_CPU(unsigned long, boot_sp) = DEFINE_PER_CPU(unsigned long, boot_sp) =
(unsigned long)init_stack + THREAD_SIZE; (unsigned long)init_stack + THREAD_SIZE - STACK_TOP_DELTA;
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
DEFINE_PER_CPU(unsigned long, boot_pc) = (unsigned long)start_kernel; DEFINE_PER_CPU(unsigned long, boot_pc) = (unsigned long)start_kernel;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册