diff options
Diffstat (limited to 'arch/x86/mach-voyager/voyager_smp.c')
-rw-r--r-- | arch/x86/mach-voyager/voyager_smp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/mach-voyager/voyager_smp.c b/arch/x86/mach-voyager/voyager_smp.c index b472a2df0b7f..f2c13482acc0 100644 --- a/arch/x86/mach-voyager/voyager_smp.c +++ b/arch/x86/mach-voyager/voyager_smp.c | |||
@@ -526,7 +526,7 @@ static void __init do_boot_cpu(__u8 cpu) | |||
526 | * initial kernel stack. We need to alter this to give the | 526 | * initial kernel stack. We need to alter this to give the |
527 | * booting CPU a new stack (taken from its idle process) */ | 527 | * booting CPU a new stack (taken from its idle process) */ |
528 | extern struct { | 528 | extern struct { |
529 | __u8 *esp; | 529 | __u8 *sp; |
530 | unsigned short ss; | 530 | unsigned short ss; |
531 | } stack_start; | 531 | } stack_start; |
532 | /* This is the format of the CPI IDT gate (in real mode) which | 532 | /* This is the format of the CPI IDT gate (in real mode) which |
@@ -555,9 +555,9 @@ static void __init do_boot_cpu(__u8 cpu) | |||
555 | idle = fork_idle(cpu); | 555 | idle = fork_idle(cpu); |
556 | if (IS_ERR(idle)) | 556 | if (IS_ERR(idle)) |
557 | panic("failed fork for CPU%d", cpu); | 557 | panic("failed fork for CPU%d", cpu); |
558 | idle->thread.eip = (unsigned long)start_secondary; | 558 | idle->thread.ip = (unsigned long)start_secondary; |
559 | /* init_tasks (in sched.c) is indexed logically */ | 559 | /* init_tasks (in sched.c) is indexed logically */ |
560 | stack_start.esp = (void *)idle->thread.esp; | 560 | stack_start.sp = (void *)idle->thread.sp; |
561 | 561 | ||
562 | init_gdt(cpu); | 562 | init_gdt(cpu); |
563 | per_cpu(current_task, cpu) = idle; | 563 | per_cpu(current_task, cpu) = idle; |
@@ -567,7 +567,7 @@ static void __init do_boot_cpu(__u8 cpu) | |||
567 | /* Note: Don't modify initial ss override */ | 567 | /* Note: Don't modify initial ss override */ |
568 | VDEBUG(("VOYAGER SMP: Booting CPU%d at 0x%lx[%x:%x], stack %p\n", cpu, | 568 | VDEBUG(("VOYAGER SMP: Booting CPU%d at 0x%lx[%x:%x], stack %p\n", cpu, |
569 | (unsigned long)hijack_source.val, hijack_source.idt.Segment, | 569 | (unsigned long)hijack_source.val, hijack_source.idt.Segment, |
570 | hijack_source.idt.Offset, stack_start.esp)); | 570 | hijack_source.idt.Offset, stack_start.sp)); |
571 | 571 | ||
572 | /* init lowmem identity mapping */ | 572 | /* init lowmem identity mapping */ |
573 | clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, | 573 | clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, |
@@ -745,8 +745,8 @@ void __init initialize_secondary(void) | |||
745 | */ | 745 | */ |
746 | 746 | ||
747 | asm volatile ("movl %0,%%esp\n\t" | 747 | asm volatile ("movl %0,%%esp\n\t" |
748 | "jmp *%1"::"r" (current->thread.esp), | 748 | "jmp *%1"::"r" (current->thread.sp), |
749 | "r"(current->thread.eip)); | 749 | "r"(current->thread.ip)); |
750 | } | 750 | } |
751 | 751 | ||
752 | /* handle a Voyager SYS_INT -- If we don't, the base board will | 752 | /* handle a Voyager SYS_INT -- If we don't, the base board will |