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 | 742fa54a62be6a263df14a553bf832724471dfbe (patch) | |
tree | 991589593b078eb2ede035f511e4b85b11b95a9c /arch/x86/kernel/asm-offsets_32.c | |
parent | 153d5f2e5787c74e9cbb6b6687c9b04be1b59893 (diff) |
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>
Diffstat (limited to 'arch/x86/kernel/asm-offsets_32.c')
-rw-r--r-- | arch/x86/kernel/asm-offsets_32.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kernel/asm-offsets_32.c b/arch/x86/kernel/asm-offsets_32.c index a3a8be7618d1..4fc24a61f431 100644 --- a/arch/x86/kernel/asm-offsets_32.c +++ b/arch/x86/kernel/asm-offsets_32.c | |||
@@ -38,15 +38,15 @@ void foo(void); | |||
38 | 38 | ||
39 | void foo(void) | 39 | void foo(void) |
40 | { | 40 | { |
41 | OFFSET(IA32_SIGCONTEXT_eax, sigcontext, eax); | 41 | OFFSET(IA32_SIGCONTEXT_ax, sigcontext, ax); |
42 | OFFSET(IA32_SIGCONTEXT_ebx, sigcontext, ebx); | 42 | OFFSET(IA32_SIGCONTEXT_bx, sigcontext, bx); |
43 | OFFSET(IA32_SIGCONTEXT_ecx, sigcontext, ecx); | 43 | OFFSET(IA32_SIGCONTEXT_cx, sigcontext, cx); |
44 | OFFSET(IA32_SIGCONTEXT_edx, sigcontext, edx); | 44 | OFFSET(IA32_SIGCONTEXT_dx, sigcontext, dx); |
45 | OFFSET(IA32_SIGCONTEXT_esi, sigcontext, esi); | 45 | OFFSET(IA32_SIGCONTEXT_si, sigcontext, si); |
46 | OFFSET(IA32_SIGCONTEXT_edi, sigcontext, edi); | 46 | OFFSET(IA32_SIGCONTEXT_di, sigcontext, di); |
47 | OFFSET(IA32_SIGCONTEXT_ebp, sigcontext, ebp); | 47 | OFFSET(IA32_SIGCONTEXT_bp, sigcontext, bp); |
48 | OFFSET(IA32_SIGCONTEXT_esp, sigcontext, esp); | 48 | OFFSET(IA32_SIGCONTEXT_sp, sigcontext, sp); |
49 | OFFSET(IA32_SIGCONTEXT_eip, sigcontext, eip); | 49 | OFFSET(IA32_SIGCONTEXT_ip, sigcontext, ip); |
50 | BLANK(); | 50 | BLANK(); |
51 | 51 | ||
52 | OFFSET(CPUINFO_x86, cpuinfo_x86, x86); | 52 | OFFSET(CPUINFO_x86, cpuinfo_x86, x86); |