1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
This commit is contained in:
Konstantin Belousov 2018-04-18 20:07:47 +00:00
parent f36411145e
commit 17cdb360cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332737

View File

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