diff options
| author | Ruslan Bukin <br@FreeBSD.org> | 2016-09-28 14:13:41 +0000 |
|---|---|---|
| committer | Ruslan Bukin <br@FreeBSD.org> | 2016-09-28 14:13:41 +0000 |
| commit | 3af5cc2e50d00665c05a0d89626cbcae6f49cbdf (patch) | |
| tree | 2e693d9f2f2f4b5426e972b188118666835ce86a | |
| parent | c7641cd18dfb14591181a493b176227da07e3a3e (diff) | |
Notes
| -rw-r--r-- | sys/mips/mips/trap.c | 7 |
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"; |
