aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2016-09-28 14:13:41 +0000
committerRuslan Bukin <br@FreeBSD.org>2016-09-28 14:13:41 +0000
commit3af5cc2e50d00665c05a0d89626cbcae6f49cbdf (patch)
tree2e693d9f2f2f4b5426e972b188118666835ce86a
parentc7641cd18dfb14591181a493b176227da07e3a3e (diff)
Notes
-rw-r--r--sys/mips/mips/trap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c
index e071e34bef6fc..e14b12be21395 100644
--- a/sys/mips/mips/trap.c
+++ b/sys/mips/mips/trap.c
@@ -741,8 +741,11 @@ dofault:
}
goto err;
}
- ucode = ftype;
- i = ((rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV);
+ i = SIGSEGV;
+ if (rv == KERN_PROTECTION_FAILURE)
+ ucode = SEGV_ACCERR;
+ else
+ ucode = SEGV_MAPERR;
addr = trapframe->pc;
msg = "BAD_PAGE_FAULT";