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/asm-offsets_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/asm-offsets_32.c')
-rw-r--r-- | arch/x86/kernel/asm-offsets_32.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/x86/kernel/asm-offsets_32.c b/arch/x86/kernel/asm-offsets_32.c index fd7464d23339..a3a8be7618d1 100644 --- a/arch/x86/kernel/asm-offsets_32.c +++ b/arch/x86/kernel/asm-offsets_32.c | |||
@@ -75,22 +75,22 @@ void foo(void) | |||
75 | OFFSET(GDS_pad, Xgt_desc_struct, pad); | 75 | OFFSET(GDS_pad, Xgt_desc_struct, pad); |
76 | BLANK(); | 76 | BLANK(); |
77 | 77 | ||
78 | OFFSET(PT_EBX, pt_regs, ebx); | 78 | OFFSET(PT_EBX, pt_regs, bx); |
79 | OFFSET(PT_ECX, pt_regs, ecx); | 79 | OFFSET(PT_ECX, pt_regs, cx); |
80 | OFFSET(PT_EDX, pt_regs, edx); | 80 | OFFSET(PT_EDX, pt_regs, dx); |
81 | OFFSET(PT_ESI, pt_regs, esi); | 81 | OFFSET(PT_ESI, pt_regs, si); |
82 | OFFSET(PT_EDI, pt_regs, edi); | 82 | OFFSET(PT_EDI, pt_regs, di); |
83 | OFFSET(PT_EBP, pt_regs, ebp); | 83 | OFFSET(PT_EBP, pt_regs, bp); |
84 | OFFSET(PT_EAX, pt_regs, eax); | 84 | OFFSET(PT_EAX, pt_regs, ax); |
85 | OFFSET(PT_DS, pt_regs, xds); | 85 | OFFSET(PT_DS, pt_regs, ds); |
86 | OFFSET(PT_ES, pt_regs, xes); | 86 | OFFSET(PT_ES, pt_regs, es); |
87 | OFFSET(PT_FS, pt_regs, xfs); | 87 | OFFSET(PT_FS, pt_regs, fs); |
88 | OFFSET(PT_ORIG_EAX, pt_regs, orig_eax); | 88 | OFFSET(PT_ORIG_EAX, pt_regs, orig_ax); |
89 | OFFSET(PT_EIP, pt_regs, eip); | 89 | OFFSET(PT_EIP, pt_regs, ip); |
90 | OFFSET(PT_CS, pt_regs, xcs); | 90 | OFFSET(PT_CS, pt_regs, cs); |
91 | OFFSET(PT_EFLAGS, pt_regs, eflags); | 91 | OFFSET(PT_EFLAGS, pt_regs, flags); |
92 | OFFSET(PT_OLDESP, pt_regs, esp); | 92 | OFFSET(PT_OLDESP, pt_regs, sp); |
93 | OFFSET(PT_OLDSS, pt_regs, xss); | 93 | OFFSET(PT_OLDSS, pt_regs, ss); |
94 | BLANK(); | 94 | BLANK(); |
95 | 95 | ||
96 | OFFSET(EXEC_DOMAIN_handler, exec_domain, handler); | 96 | OFFSET(EXEC_DOMAIN_handler, exec_domain, handler); |