microblaze: Remove pr_<level> uses of KERN_<level>
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
f6f94e2ab1
commit
c4554c32a7
|
@ -86,8 +86,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
|
||||||
switch (type & 0x1F) {
|
switch (type & 0x1F) {
|
||||||
case MICROBLAZE_ILL_OPCODE_EXCEPTION:
|
case MICROBLAZE_ILL_OPCODE_EXCEPTION:
|
||||||
if (user_mode(regs)) {
|
if (user_mode(regs)) {
|
||||||
pr_debug(KERN_WARNING "Illegal opcode exception " \
|
pr_debug("Illegal opcode exception in user mode\n");
|
||||||
"in user mode.\n");
|
|
||||||
_exception(SIGILL, regs, ILL_ILLOPC, addr);
|
_exception(SIGILL, regs, ILL_ILLOPC, addr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -97,8 +96,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
|
||||||
break;
|
break;
|
||||||
case MICROBLAZE_IBUS_EXCEPTION:
|
case MICROBLAZE_IBUS_EXCEPTION:
|
||||||
if (user_mode(regs)) {
|
if (user_mode(regs)) {
|
||||||
pr_debug(KERN_WARNING "Instruction bus error " \
|
pr_debug("Instruction bus error exception in user mode\n");
|
||||||
"exception in user mode.\n");
|
|
||||||
_exception(SIGBUS, regs, BUS_ADRERR, addr);
|
_exception(SIGBUS, regs, BUS_ADRERR, addr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -108,8 +106,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
|
||||||
break;
|
break;
|
||||||
case MICROBLAZE_DBUS_EXCEPTION:
|
case MICROBLAZE_DBUS_EXCEPTION:
|
||||||
if (user_mode(regs)) {
|
if (user_mode(regs)) {
|
||||||
pr_debug(KERN_WARNING "Data bus error exception " \
|
pr_debug("Data bus error exception in user mode\n");
|
||||||
"in user mode.\n");
|
|
||||||
_exception(SIGBUS, regs, BUS_ADRERR, addr);
|
_exception(SIGBUS, regs, BUS_ADRERR, addr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -119,8 +116,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
|
||||||
break;
|
break;
|
||||||
case MICROBLAZE_DIV_ZERO_EXCEPTION:
|
case MICROBLAZE_DIV_ZERO_EXCEPTION:
|
||||||
if (user_mode(regs)) {
|
if (user_mode(regs)) {
|
||||||
pr_debug(KERN_WARNING "Divide by zero exception " \
|
pr_debug("Divide by zero exception in user mode\n");
|
||||||
"in user mode\n");
|
|
||||||
_exception(SIGILL, regs, FPE_INTDIV, addr);
|
_exception(SIGILL, regs, FPE_INTDIV, addr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -129,7 +125,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
|
||||||
die("Divide by zero exception", regs, SIGBUS);
|
die("Divide by zero exception", regs, SIGBUS);
|
||||||
break;
|
break;
|
||||||
case MICROBLAZE_FPU_EXCEPTION:
|
case MICROBLAZE_FPU_EXCEPTION:
|
||||||
pr_debug(KERN_WARNING "FPU exception\n");
|
pr_debug("FPU exception\n");
|
||||||
/* IEEE FP exception */
|
/* IEEE FP exception */
|
||||||
/* I removed fsr variable and use code var for storing fsr */
|
/* I removed fsr variable and use code var for storing fsr */
|
||||||
if (fsr & FSR_IO)
|
if (fsr & FSR_IO)
|
||||||
|
@ -147,7 +143,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
|
||||||
|
|
||||||
#ifdef CONFIG_MMU
|
#ifdef CONFIG_MMU
|
||||||
case MICROBLAZE_PRIVILEGED_EXCEPTION:
|
case MICROBLAZE_PRIVILEGED_EXCEPTION:
|
||||||
pr_debug(KERN_WARNING "Privileged exception\n");
|
pr_debug("Privileged exception\n");
|
||||||
/* "brk r0,r0" - used as debug breakpoint - old toolchain */
|
/* "brk r0,r0" - used as debug breakpoint - old toolchain */
|
||||||
if (get_user(code, (unsigned long *)regs->pc) == 0
|
if (get_user(code, (unsigned long *)regs->pc) == 0
|
||||||
&& code == 0x980c0000) {
|
&& code == 0x980c0000) {
|
||||||
|
|
Loading…
Reference in New Issue