diff options
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/crash.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/traps.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/kernel/crash.c b/arch/i386/kernel/crash.c index d49dbe8dc96b..e3c5fca0aa8a 100644 --- a/arch/i386/kernel/crash.c +++ b/arch/i386/kernel/crash.c | |||
@@ -105,7 +105,7 @@ static int crash_nmi_callback(struct pt_regs *regs, int cpu) | |||
105 | return 1; | 105 | return 1; |
106 | local_irq_disable(); | 106 | local_irq_disable(); |
107 | 107 | ||
108 | if (!user_mode(regs)) { | 108 | if (!user_mode_vm(regs)) { |
109 | crash_fixup_ss_esp(&fixed_regs, regs); | 109 | crash_fixup_ss_esp(&fixed_regs, regs); |
110 | regs = &fixed_regs; | 110 | regs = &fixed_regs; |
111 | } | 111 | } |
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 0480454ebffa..299e61674084 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c | |||
@@ -295,7 +295,7 @@ void show_regs(struct pt_regs * regs) | |||
295 | printk("EIP: %04x:[<%08lx>] CPU: %d\n",0xffff & regs->xcs,regs->eip, smp_processor_id()); | 295 | printk("EIP: %04x:[<%08lx>] CPU: %d\n",0xffff & regs->xcs,regs->eip, smp_processor_id()); |
296 | print_symbol("EIP is at %s\n", regs->eip); | 296 | print_symbol("EIP is at %s\n", regs->eip); |
297 | 297 | ||
298 | if (user_mode(regs)) | 298 | if (user_mode_vm(regs)) |
299 | printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp); | 299 | printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp); |
300 | printk(" EFLAGS: %08lx %s (%s %.*s)\n", | 300 | printk(" EFLAGS: %08lx %s (%s %.*s)\n", |
301 | regs->eflags, print_tainted(), system_utsname.release, | 301 | regs->eflags, print_tainted(), system_utsname.release, |
diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index d510de7e4f2a..a807a2da581d 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c | |||
@@ -254,7 +254,7 @@ void show_registers(struct pt_regs *regs) | |||
254 | 254 | ||
255 | esp = (unsigned long) (®s->esp); | 255 | esp = (unsigned long) (®s->esp); |
256 | savesegment(ss, ss); | 256 | savesegment(ss, ss); |
257 | if (user_mode(regs)) { | 257 | if (user_mode_vm(regs)) { |
258 | in_kernel = 0; | 258 | in_kernel = 0; |
259 | esp = regs->esp; | 259 | esp = regs->esp; |
260 | ss = regs->xss & 0xffff; | 260 | ss = regs->xss & 0xffff; |
@@ -644,7 +644,7 @@ void die_nmi (struct pt_regs *regs, const char *msg) | |||
644 | /* If we are in kernel we are probably nested up pretty bad | 644 | /* If we are in kernel we are probably nested up pretty bad |
645 | * and might aswell get out now while we still can. | 645 | * and might aswell get out now while we still can. |
646 | */ | 646 | */ |
647 | if (!user_mode(regs)) { | 647 | if (!user_mode_vm(regs)) { |
648 | current->thread.trap_no = 2; | 648 | current->thread.trap_no = 2; |
649 | crash_kexec(regs); | 649 | crash_kexec(regs); |
650 | } | 650 | } |