aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/kernel/traps.c')
-rw-r--r--arch/ppc/kernel/traps.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/ppc/kernel/traps.c b/arch/ppc/kernel/traps.c
index 82e4d70e6dbb..26606aa33de6 100644
--- a/arch/ppc/kernel/traps.c
+++ b/arch/ppc/kernel/traps.c
@@ -74,7 +74,7 @@ void (*debugger_fault_handler)(struct pt_regs *regs);
74 74
75DEFINE_SPINLOCK(die_lock); 75DEFINE_SPINLOCK(die_lock);
76 76
77void die(const char * str, struct pt_regs * fp, long err) 77int die(const char * str, struct pt_regs * fp, long err)
78{ 78{
79 static int die_counter; 79 static int die_counter;
80 int nl = 0; 80 int nl = 0;
@@ -232,7 +232,7 @@ platform_machine_check(struct pt_regs *regs)
232{ 232{
233} 233}
234 234
235void MachineCheckException(struct pt_regs *regs) 235void machine_check_exception(struct pt_regs *regs)
236{ 236{
237 unsigned long reason = get_mc_reason(regs); 237 unsigned long reason = get_mc_reason(regs);
238 238
@@ -393,14 +393,14 @@ void SMIException(struct pt_regs *regs)
393#endif 393#endif
394} 394}
395 395
396void UnknownException(struct pt_regs *regs) 396void unknown_exception(struct pt_regs *regs)
397{ 397{
398 printk("Bad trap at PC: %lx, MSR: %lx, vector=%lx %s\n", 398 printk("Bad trap at PC: %lx, MSR: %lx, vector=%lx %s\n",
399 regs->nip, regs->msr, regs->trap, print_tainted()); 399 regs->nip, regs->msr, regs->trap, print_tainted());
400 _exception(SIGTRAP, regs, 0, 0); 400 _exception(SIGTRAP, regs, 0, 0);
401} 401}
402 402
403void InstructionBreakpoint(struct pt_regs *regs) 403void instruction_breakpoint_exception(struct pt_regs *regs)
404{ 404{
405 if (debugger_iabr_match(regs)) 405 if (debugger_iabr_match(regs))
406 return; 406 return;
@@ -622,7 +622,7 @@ int check_bug_trap(struct pt_regs *regs)
622 return 0; 622 return 0;
623} 623}
624 624
625void ProgramCheckException(struct pt_regs *regs) 625void program_check_exception(struct pt_regs *regs)
626{ 626{
627 unsigned int reason = get_reason(regs); 627 unsigned int reason = get_reason(regs);
628 extern int do_mathemu(struct pt_regs *regs); 628 extern int do_mathemu(struct pt_regs *regs);
@@ -701,7 +701,7 @@ void ProgramCheckException(struct pt_regs *regs)
701 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); 701 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip);
702} 702}
703 703
704void SingleStepException(struct pt_regs *regs) 704void single_step_exception(struct pt_regs *regs)
705{ 705{
706 regs->msr &= ~(MSR_SE | MSR_BE); /* Turn off 'trace' bits */ 706 regs->msr &= ~(MSR_SE | MSR_BE); /* Turn off 'trace' bits */
707 if (debugger_sstep(regs)) 707 if (debugger_sstep(regs))
@@ -709,7 +709,7 @@ void SingleStepException(struct pt_regs *regs)
709 _exception(SIGTRAP, regs, TRAP_TRACE, 0); 709 _exception(SIGTRAP, regs, TRAP_TRACE, 0);
710} 710}
711 711
712void AlignmentException(struct pt_regs *regs) 712void alignment_exception(struct pt_regs *regs)
713{ 713{
714 int fixed; 714 int fixed;
715 715
@@ -814,7 +814,7 @@ void TAUException(struct pt_regs *regs)
814} 814}
815#endif /* CONFIG_INT_TAU */ 815#endif /* CONFIG_INT_TAU */
816 816
817void AltivecUnavailException(struct pt_regs *regs) 817void altivec_unavailable_exception(struct pt_regs *regs)
818{ 818{
819 static int kernel_altivec_count; 819 static int kernel_altivec_count;
820 820
@@ -835,7 +835,7 @@ void AltivecUnavailException(struct pt_regs *regs)
835} 835}
836 836
837#ifdef CONFIG_ALTIVEC 837#ifdef CONFIG_ALTIVEC
838void AltivecAssistException(struct pt_regs *regs) 838void altivec_assist_exception(struct pt_regs *regs)
839{ 839{
840 int err; 840 int err;
841 841
@@ -872,7 +872,7 @@ void AltivecAssistException(struct pt_regs *regs)
872#endif /* CONFIG_ALTIVEC */ 872#endif /* CONFIG_ALTIVEC */
873 873
874#ifdef CONFIG_E500 874#ifdef CONFIG_E500
875void PerformanceMonitorException(struct pt_regs *regs) 875void performance_monitor_exception(struct pt_regs *regs)
876{ 876{
877 perf_irq(regs); 877 perf_irq(regs);
878} 878}