summaryrefslogtreecommitdiffstats
path: root/kernel/arch/sparc/mm/fault_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/sparc/mm/fault_64.c')
-rw-r--r--kernel/arch/sparc/mm/fault_64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/arch/sparc/mm/fault_64.c b/kernel/arch/sparc/mm/fault_64.c
index e9268ea1a..dbabe5713 100644
--- a/kernel/arch/sparc/mm/fault_64.c
+++ b/kernel/arch/sparc/mm/fault_64.c
@@ -413,8 +413,9 @@ good_area:
* that here.
*/
if ((fault_code & FAULT_CODE_ITLB) && !(vma->vm_flags & VM_EXEC)) {
- BUG_ON(address != regs->tpc);
- BUG_ON(regs->tstate & TSTATE_PRIV);
+ WARN(address != regs->tpc,
+ "address (%lx) != regs->tpc (%lx)\n", address, regs->tpc);
+ WARN_ON(regs->tstate & TSTATE_PRIV);
goto bad_area;
}