aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor_32.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-01-30 07:30:56 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:56 -0500
commit65ea5b0349903585bfed9720fa06f5edb4f1cd25 (patch)
tree6c252228c34416b7e2077f23475de34500c2ab8a /include/asm-x86/processor_32.h
parent53756d3722172815f52272b28c6d5d5e9639adde (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 'include/asm-x86/processor_32.h')
-rw-r--r--include/asm-x86/processor_32.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index 3c67eacb3168..c85400fe58c4 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -398,14 +398,14 @@ struct thread_struct {
398 398
399#define start_thread(regs, new_eip, new_esp) do { \ 399#define start_thread(regs, new_eip, new_esp) do { \
400 __asm__("movl %0,%%gs": :"r" (0)); \ 400 __asm__("movl %0,%%gs": :"r" (0)); \
401 regs->xfs = 0; \ 401 regs->fs = 0; \
402 set_fs(USER_DS); \ 402 set_fs(USER_DS); \
403 regs->xds = __USER_DS; \ 403 regs->ds = __USER_DS; \
404 regs->xes = __USER_DS; \ 404 regs->es = __USER_DS; \
405 regs->xss = __USER_DS; \ 405 regs->ss = __USER_DS; \
406 regs->xcs = __USER_CS; \ 406 regs->cs = __USER_CS; \
407 regs->eip = new_eip; \ 407 regs->ip = new_eip; \
408 regs->esp = new_esp; \ 408 regs->sp = new_esp; \
409} while (0) 409} while (0)
410 410
411/* Forward declaration, a strange C thing */ 411/* Forward declaration, a strange C thing */
@@ -440,7 +440,7 @@ unsigned long get_wchan(struct task_struct *p);
440 * is accessable even if the CPU haven't stored the SS/ESP registers 440 * is accessable even if the CPU haven't stored the SS/ESP registers
441 * on the stack (interrupt gate does not save these registers 441 * on the stack (interrupt gate does not save these registers
442 * when switching to the same priv ring). 442 * when switching to the same priv ring).
443 * Therefore beware: accessing the xss/esp fields of the 443 * Therefore beware: accessing the ss/esp fields of the
444 * "struct pt_regs" is possible, but they may contain the 444 * "struct pt_regs" is possible, but they may contain the
445 * completely wrong values. 445 * completely wrong values.
446 */ 446 */
@@ -451,8 +451,8 @@ unsigned long get_wchan(struct task_struct *p);
451 __regs__ - 1; \ 451 __regs__ - 1; \
452}) 452})
453 453
454#define KSTK_EIP(task) (task_pt_regs(task)->eip) 454#define KSTK_EIP(task) (task_pt_regs(task)->ip)
455#define KSTK_ESP(task) (task_pt_regs(task)->esp) 455#define KSTK_ESP(task) (task_pt_regs(task)->sp)
456 456
457 457
458struct microcode_header { 458struct microcode_header {