Date: Wed, 18 Apr 2018 20:07:47 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r332737 - head/sys/i386/i386 Message-ID: <201804182007.w3IK7lwN077467@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Apr 18 20:07:47 2018 New Revision: 332737 URL: https://svnweb.freebsd.org/changeset/base/332737 Log: For fatal traps other than pagefaults, print raw fault error codes. For pagefaults, the error is already decoded and printed. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/i386/i386/trap.c Modified: head/sys/i386/i386/trap.c ============================================================================== --- head/sys/i386/i386/trap.c Wed Apr 18 19:18:14 2018 (r332736) +++ head/sys/i386/i386/trap.c Wed Apr 18 20:07:47 2018 (r332737) @@ -904,6 +904,8 @@ trap_fatal(frame, eva) "", code & PGEX_RSV ? "reserved bits in PTE" : code & PGEX_P ? "protection violation" : "page not present"); + } else { + printf("error code = %#x\n", code); } printf("instruction pointer = 0x%x:0x%x\n", frame->tf_cs & 0xffff, frame->tf_eip);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804182007.w3IK7lwN077467>