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/time_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/time_32.c')
-rw-r--r-- | arch/x86/kernel/time_32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/time_32.c b/arch/x86/kernel/time_32.c index 2dcbb81b4cd3..1a89e93f3f1c 100644 --- a/arch/x86/kernel/time_32.c +++ b/arch/x86/kernel/time_32.c | |||
@@ -49,15 +49,15 @@ unsigned long profile_pc(struct pt_regs *regs) | |||
49 | unsigned long pc = instruction_pointer(regs); | 49 | unsigned long pc = instruction_pointer(regs); |
50 | 50 | ||
51 | #ifdef CONFIG_SMP | 51 | #ifdef CONFIG_SMP |
52 | if (!v8086_mode(regs) && SEGMENT_IS_KERNEL_CODE(regs->xcs) && | 52 | if (!v8086_mode(regs) && SEGMENT_IS_KERNEL_CODE(regs->cs) && |
53 | in_lock_functions(pc)) { | 53 | in_lock_functions(pc)) { |
54 | #ifdef CONFIG_FRAME_POINTER | 54 | #ifdef CONFIG_FRAME_POINTER |
55 | return *(unsigned long *)(regs->ebp + 4); | 55 | return *(unsigned long *)(regs->bp + 4); |
56 | #else | 56 | #else |
57 | unsigned long *sp = (unsigned long *)®s->esp; | 57 | unsigned long *sp = (unsigned long *)®s->sp; |
58 | 58 | ||
59 | /* Return address is either directly at stack pointer | 59 | /* Return address is either directly at stack pointer |
60 | or above a saved eflags. Eflags has bits 22-31 zero, | 60 | or above a saved flags. Eflags has bits 22-31 zero, |
61 | kernel addresses don't. */ | 61 | kernel addresses don't. */ |
62 | if (sp[0] >> 22) | 62 | if (sp[0] >> 22) |
63 | return sp[0]; | 63 | return sp[0]; |