diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-30 07:30:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:56 -0500 |
commit | 65ea5b0349903585bfed9720fa06f5edb4f1cd25 (patch) | |
tree | 6c252228c34416b7e2077f23475de34500c2ab8a /arch/x86/kernel/smpboot_32.c | |
parent | 53756d3722172815f52272b28c6d5d5e9639adde (diff) |
x86: rename the struct pt_regs members for 32/64-bit consistency
We have a lot of code which differs only by the naming of specific
members of structures that contain registers. In order to enable
additional unifications, this patch drops the e- or r- size prefix
from the register names in struct pt_regs, and drops the x- prefixes
for segment registers on the 32-bit side.
This patch also performs the equivalent renames in some additional
places that might be candidates for unification in the future.
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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index 0bf7f20baba0..3566191832b3 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c | |||
@@ -447,7 +447,7 @@ void __devinit initialize_secondary(void) | |||
447 | { | 447 | { |
448 | /* | 448 | /* |
449 | * We don't actually need to load the full TSS, | 449 | * We don't actually need to load the full TSS, |
450 | * basically just the stack pointer and the eip. | 450 | * basically just the stack pointer and the ip. |
451 | */ | 451 | */ |
452 | 452 | ||
453 | asm volatile( | 453 | asm volatile( |
@@ -459,7 +459,7 @@ void __devinit initialize_secondary(void) | |||
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 */ |
461 | extern struct { | 461 | extern struct { |
462 | void * esp; | 462 | void * sp; |
463 | unsigned short ss; | 463 | unsigned short ss; |
464 | } stack_start; | 464 | } stack_start; |
465 | 465 | ||
@@ -667,7 +667,7 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
667 | * target processor state. | 667 | * target processor state. |
668 | */ | 668 | */ |
669 | startup_ipi_hook(phys_apicid, (unsigned long) start_secondary, | 669 | startup_ipi_hook(phys_apicid, (unsigned long) start_secondary, |
670 | (unsigned long) stack_start.esp); | 670 | (unsigned long) stack_start.sp); |
671 | 671 | ||
672 | /* | 672 | /* |
673 | * Run STARTUP IPI loop. | 673 | * Run STARTUP IPI loop. |
@@ -806,9 +806,9 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu) | |||
806 | alternatives_smp_switch(1); | 806 | alternatives_smp_switch(1); |
807 | 807 | ||
808 | /* So we see what's up */ | 808 | /* So we see what's up */ |
809 | printk("Booting processor %d/%d eip %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.esp = (void *) idle->thread.esp; | 811 | stack_start.sp = (void *) idle->thread.esp; |
812 | 812 | ||
813 | irq_ctx_init(cpu); | 813 | irq_ctx_init(cpu); |
814 | 814 | ||