mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-15 14:36:52 +01:00
[ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8
Use the correct constants. Signed-off-by: Russell King <[email protected]>
This commit is contained in:
1 parent
ca6ca91d8c
commit
7db078be19
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user