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/mach-voyager | |
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/mach-voyager')
-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 |