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/irq_64.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/irq_64.c')
-rw-r--r-- | arch/x86/kernel/irq_64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c index 6c3a3b6e5cf4..3aac15466a91 100644 --- a/arch/x86/kernel/irq_64.c +++ b/arch/x86/kernel/irq_64.c | |||
@@ -53,11 +53,11 @@ static inline void stack_overflow_check(struct pt_regs *regs) | |||
53 | u64 curbase = (u64)task_stack_page(current); | 53 | u64 curbase = (u64)task_stack_page(current); |
54 | static unsigned long warned = -60*HZ; | 54 | static unsigned long warned = -60*HZ; |
55 | 55 | ||
56 | if (regs->rsp >= curbase && regs->rsp <= curbase + THREAD_SIZE && | 56 | if (regs->sp >= curbase && regs->sp <= curbase + THREAD_SIZE && |
57 | regs->rsp < curbase + sizeof(struct thread_info) + 128 && | 57 | regs->sp < curbase + sizeof(struct thread_info) + 128 && |
58 | time_after(jiffies, warned + 60*HZ)) { | 58 | time_after(jiffies, warned + 60*HZ)) { |
59 | printk("do_IRQ: %s near stack overflow (cur:%Lx,rsp:%lx)\n", | 59 | printk("do_IRQ: %s near stack overflow (cur:%Lx,sp:%lx)\n", |
60 | current->comm, curbase, regs->rsp); | 60 | current->comm, curbase, regs->sp); |
61 | show_stack(NULL,NULL); | 61 | show_stack(NULL,NULL); |
62 | warned = jiffies; | 62 | warned = jiffies; |
63 | } | 63 | } |
@@ -162,7 +162,7 @@ asmlinkage unsigned int do_IRQ(struct pt_regs *regs) | |||
162 | struct pt_regs *old_regs = set_irq_regs(regs); | 162 | struct pt_regs *old_regs = set_irq_regs(regs); |
163 | 163 | ||
164 | /* high bit used in ret_from_ code */ | 164 | /* high bit used in ret_from_ code */ |
165 | unsigned vector = ~regs->orig_rax; | 165 | unsigned vector = ~regs->orig_ax; |
166 | unsigned irq; | 166 | unsigned irq; |
167 | 167 | ||
168 | exit_idle(); | 168 | exit_idle(); |