diff options
author | Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk> | 2005-06-23 03:08:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:14 -0400 |
commit | 717b594a415bfaf2dbd5e8266636488f2564c689 (patch) | |
tree | 3d5e1f0a5321c172d35473509a06cf833c916d3a /arch/i386/kernel/process.c | |
parent | fa1e1bdf78d405f9905b8290ee9211e7a7bbc99b (diff) |
[PATCH] xen: x86: Use more usermode macro
Use the user_mode macro where it's possible.
Signed-off-by: Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/process.c')
-rw-r--r-- | arch/i386/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 2468ab70c386..be3efba7caf7 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c | |||
@@ -266,7 +266,7 @@ void show_regs(struct pt_regs * regs) | |||
266 | printk("EIP: %04x:[<%08lx>] CPU: %d\n",0xffff & regs->xcs,regs->eip, smp_processor_id()); | 266 | printk("EIP: %04x:[<%08lx>] CPU: %d\n",0xffff & regs->xcs,regs->eip, smp_processor_id()); |
267 | print_symbol("EIP is at %s\n", regs->eip); | 267 | print_symbol("EIP is at %s\n", regs->eip); |
268 | 268 | ||
269 | if (regs->xcs & 3) | 269 | if (user_mode(regs)) |
270 | printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp); | 270 | printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp); |
271 | printk(" EFLAGS: %08lx %s (%s)\n", | 271 | printk(" EFLAGS: %08lx %s (%s)\n", |
272 | regs->eflags, print_tainted(), system_utsname.release); | 272 | regs->eflags, print_tainted(), system_utsname.release); |