Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7db078be authored by Russell King's avatar Russell King Committed by Russell King
Browse files

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



Use the correct constants.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ca6ca91d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();