|
@@ -964,9 +964,7 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle)
|
|
|
int cpu0_nmi_registered = 0;
|
|
|
unsigned long timeout;
|
|
|
|
|
|
- idle->thread.sp = (unsigned long) (((struct pt_regs *)
|
|
|
- (THREAD_SIZE + task_stack_page(idle))) - 1);
|
|
|
-
|
|
|
+ idle->thread.sp = (unsigned long)task_pt_regs(idle);
|
|
|
early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu);
|
|
|
initial_code = (unsigned long)start_secondary;
|
|
|
initial_stack = idle->thread.sp;
|