mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
On MIPS, when printing page fault information for an unexpected exception
type, explicitly print out "unknown" rather than the empty string, and include the exception type number for ease of debugging. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
b03d880eea
commit
431735d0c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239669
@ -1465,15 +1465,17 @@ log_bad_page_fault(char *msg, struct trapframe *frame, int trap_type)
|
||||
read_or_write = "read";
|
||||
break;
|
||||
default:
|
||||
read_or_write = "";
|
||||
read_or_write = "unknown";
|
||||
}
|
||||
|
||||
pc = frame->pc + (DELAYBRANCH(frame->cause) ? 4 : 0);
|
||||
log(LOG_ERR, "%s: pid %d tid %ld (%s), uid %d: pc %#jx got a %s fault at %#jx\n",
|
||||
log(LOG_ERR, "%s: pid %d tid %ld (%s), uid %d: pc %#jx got a %s fault "
|
||||
"(type %#x) at %#jx\n",
|
||||
msg, p->p_pid, (long)td->td_tid, p->p_comm,
|
||||
p->p_ucred ? p->p_ucred->cr_uid : -1,
|
||||
(intmax_t)pc,
|
||||
read_or_write,
|
||||
trap_type,
|
||||
(intmax_t)frame->badvaddr);
|
||||
|
||||
/* log registers in trap frame */
|
||||
|
Loading…
Reference in New Issue
Block a user