summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-10-22 21:27:22 +0000
committerbrooks <brooks@FreeBSD.org>2013-10-22 21:27:22 +0000
commitdeb8ffdc042e78c4c57a10093a39edfddec03008 (patch)
treed4ccea14d2b4b92479f16eb85ed38aa502f6db91 /sys/mips
parent15e1002387b7d7b3cfd66cfd2f22bbdefacbfae3 (diff)
downloadFreeBSD-src-deb8ffdc042e78c4c57a10093a39edfddec03008.zip
FreeBSD-src-deb8ffdc042e78c4c57a10093a39edfddec03008.tar.gz
MFP4:
Change 221767 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:18:53 When printing out information on a TLB MOD exception for a user process (e.g., an attempt to write to a read-only page), report it as a "write" in the console message, rather than "unknown". Change 221768 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:28:00 Fix post-compile but pre-commit typo in last changeset. MFC after: 3 days Sponsored by: DARPA/AFRL
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/trap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c
index 9fda4ff..c194112 100644
--- a/sys/mips/mips/trap.c
+++ b/sys/mips/mips/trap.c
@@ -1520,6 +1520,7 @@ log_bad_page_fault(char *msg, struct trapframe *frame, int trap_type)
printf("cpuid = %d\n", PCPU_GET(cpuid));
#endif
switch (trap_type) {
+ case T_TLB_MOD:
case T_TLB_ST_MISS:
case T_ADDR_ERR_ST:
read_or_write = "write";
OpenPOWER on IntegriCloud