diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-30 07:31:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:02 -0500 |
commit | faca62273b602ab482fb7d3d940dbf41ef08b00e (patch) | |
tree | 913fb1c565a2b719b00ae4b745c38cc9b0ebf279 /arch/x86/kernel/smpboot_32.c | |
parent | 25149b62d3e6a3e737af39bd4a0b4e97de0811b7 (diff) |
x86: use generic register name in the thread and tss structures
This changes size-specific register names (eip/rip, esp/rsp, etc.) to
generic names in the thread and tss structures.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/smpboot_32.c')
-rw-r--r-- | arch/x86/kernel/smpboot_32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index 3566191832b3..0f294d6e22cf 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c | |||
@@ -454,7 +454,7 @@ void __devinit initialize_secondary(void) | |||
454 | "movl %0,%%esp\n\t" | 454 | "movl %0,%%esp\n\t" |
455 | "jmp *%1" | 455 | "jmp *%1" |
456 | : | 456 | : |
457 | :"m" (current->thread.esp),"m" (current->thread.eip)); | 457 | :"m" (current->thread.sp),"m" (current->thread.ip)); |
458 | } | 458 | } |
459 | 459 | ||
460 | /* Static state in head.S used to set up a CPU */ | 460 | /* Static state in head.S used to set up a CPU */ |
@@ -753,7 +753,7 @@ static inline struct task_struct * __cpuinit alloc_idle_task(int cpu) | |||
753 | /* initialize thread_struct. we really want to avoid destroy | 753 | /* initialize thread_struct. we really want to avoid destroy |
754 | * idle tread | 754 | * idle tread |
755 | */ | 755 | */ |
756 | idle->thread.esp = (unsigned long)task_pt_regs(idle); | 756 | idle->thread.sp = (unsigned long)task_pt_regs(idle); |
757 | init_idle(idle, cpu); | 757 | init_idle(idle, cpu); |
758 | return idle; | 758 | return idle; |
759 | } | 759 | } |
@@ -798,7 +798,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu) | |||
798 | per_cpu(current_task, cpu) = idle; | 798 | per_cpu(current_task, cpu) = idle; |
799 | early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu); | 799 | early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu); |
800 | 800 | ||
801 | idle->thread.eip = (unsigned long) start_secondary; | 801 | idle->thread.ip = (unsigned long) start_secondary; |
802 | /* start_eip had better be page-aligned! */ | 802 | /* start_eip had better be page-aligned! */ |
803 | start_eip = setup_trampoline(); | 803 | start_eip = setup_trampoline(); |
804 | 804 | ||
@@ -808,7 +808,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu) | |||
808 | /* So we see what's up */ | 808 | /* So we see what's up */ |
809 | printk("Booting processor %d/%d ip %lx\n", cpu, apicid, start_eip); | 809 | printk("Booting processor %d/%d ip %lx\n", cpu, apicid, start_eip); |
810 | /* Stack for startup_32 can be just as for start_secondary onwards */ | 810 | /* Stack for startup_32 can be just as for start_secondary onwards */ |
811 | stack_start.sp = (void *) idle->thread.esp; | 811 | stack_start.sp = (void *) idle->thread.sp; |
812 | 812 | ||
813 | irq_ctx_init(cpu); | 813 | irq_ctx_init(cpu); |
814 | 814 | ||