x86: use generic register names in struct sigcontext
Switch struct sigcontext (defined in <asm/sigcontext*.h>) to using
register names withut e- or r-prefixes for both 32- and 64-bit x86.
This is intended as a preliminary step in unifying this code between
architectures.
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>
diff --git a/arch/x86/kernel/asm-offsets_32.c b/arch/x86/kernel/asm-offsets_32.c
index a3a8be7..4fc24a6 100644
--- a/arch/x86/kernel/asm-offsets_32.c
+++ b/arch/x86/kernel/asm-offsets_32.c
@@ -38,15 +38,15 @@
void foo(void)
{
- OFFSET(IA32_SIGCONTEXT_eax, sigcontext, eax);
- OFFSET(IA32_SIGCONTEXT_ebx, sigcontext, ebx);
- OFFSET(IA32_SIGCONTEXT_ecx, sigcontext, ecx);
- OFFSET(IA32_SIGCONTEXT_edx, sigcontext, edx);
- OFFSET(IA32_SIGCONTEXT_esi, sigcontext, esi);
- OFFSET(IA32_SIGCONTEXT_edi, sigcontext, edi);
- OFFSET(IA32_SIGCONTEXT_ebp, sigcontext, ebp);
- OFFSET(IA32_SIGCONTEXT_esp, sigcontext, esp);
- OFFSET(IA32_SIGCONTEXT_eip, sigcontext, eip);
+ OFFSET(IA32_SIGCONTEXT_ax, sigcontext, ax);
+ OFFSET(IA32_SIGCONTEXT_bx, sigcontext, bx);
+ OFFSET(IA32_SIGCONTEXT_cx, sigcontext, cx);
+ OFFSET(IA32_SIGCONTEXT_dx, sigcontext, dx);
+ OFFSET(IA32_SIGCONTEXT_si, sigcontext, si);
+ OFFSET(IA32_SIGCONTEXT_di, sigcontext, di);
+ OFFSET(IA32_SIGCONTEXT_bp, sigcontext, bp);
+ OFFSET(IA32_SIGCONTEXT_sp, sigcontext, sp);
+ OFFSET(IA32_SIGCONTEXT_ip, sigcontext, ip);
BLANK();
OFFSET(CPUINFO_x86, cpuinfo_x86, x86);