aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-07-13 10:51:46 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-07-13 12:40:01 -0400
commite1bb828906e54ffb7e8b358516158ffdcf9581b8 (patch)
treeea331d810e18ba791d6ded6fe7b8e6c45c0e8b20
parent01bebc66793f2cc65104452dc319a8a99f005934 (diff)
[MIPS] Make show_code static and add __user tag
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/traps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 6f3e5c1424d3..37c562c4c817 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -187,7 +187,7 @@ void dump_stack(void)
187 187
188EXPORT_SYMBOL(dump_stack); 188EXPORT_SYMBOL(dump_stack);
189 189
190void show_code(unsigned int *pc) 190static void show_code(unsigned int __user *pc)
191{ 191{
192 long i; 192 long i;
193 193
@@ -305,7 +305,7 @@ void show_registers(struct pt_regs *regs)
305 printk("Process %s (pid: %d, threadinfo=%p, task=%p)\n", 305 printk("Process %s (pid: %d, threadinfo=%p, task=%p)\n",
306 current->comm, current->pid, current_thread_info(), current); 306 current->comm, current->pid, current_thread_info(), current);
307 show_stacktrace(current, regs); 307 show_stacktrace(current, regs);
308 show_code((unsigned int *) regs->cp0_epc); 308 show_code((unsigned int __user *) regs->cp0_epc);
309 printk("\n"); 309 printk("\n");
310} 310}
311 311
@@ -865,7 +865,7 @@ asmlinkage void do_mcheck(struct pt_regs *regs)
865 dump_tlb_all(); 865 dump_tlb_all();
866 } 866 }
867 867
868 show_code((unsigned int *) regs->cp0_epc); 868 show_code((unsigned int __user *) regs->cp0_epc);
869 869
870 /* 870 /*
871 * Some chips may have other causes of machine check (e.g. SB1 871 * Some chips may have other causes of machine check (e.g. SB1