···114 * We need to tell the secondary core where to find115 * its stack and the page tables.116 */117- secondary_data.stack = (void *)idle->thread_info + THREAD_START_SP;118 secondary_data.pgdir = virt_to_phys(pgd);119 wmb();120···245 __asm__("mov sp, %0\n"246 " b secondary_start_kernel"247 :248- : "r" ((void *)current->thread_info + THREAD_SIZE - 8));249}250#endif /* CONFIG_HOTPLUG_CPU */251
···114 * We need to tell the secondary core where to find115 * its stack and the page tables.116 */117+ secondary_data.stack = task_stack_page(idle) + THREAD_START_SP;118 secondary_data.pgdir = virt_to_phys(pgd);119 wmb();120···245 __asm__("mov sp, %0\n"246 " b secondary_start_kernel"247 :248+ : "r" (task_stack_page(current) + THREAD_SIZE - 8));249}250#endif /* CONFIG_HOTPLUG_CPU */251