svn commit: r332737 - head/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Wed Apr 18 20:07:48 UTC 2018


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);


More information about the svn-src-all mailing list