提交 7db078be 编写于 作者: R Russell King 提交者: Russell King

[ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8

Use the correct constants.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 ca6ca91d
......@@ -110,7 +110,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
* We need to tell the secondary core where to find
* its stack and the page tables.
*/
secondary_data.stack = (void *)idle->thread_info + THREAD_SIZE - 8;
secondary_data.stack = (void *)idle->thread_info + THREAD_START_SP;
secondary_data.pgdir = virt_to_phys(pgd);
wmb();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册