Differentiate between data and instruction fetch in the fatal

page fault trap handler.

Reviewed by:	alc
This commit is contained in:
Ruslan Ermilov 2006-11-28 20:04:00 +00:00
parent c1ecb4d7c3
commit 34028cf7d1

View File

@ -646,9 +646,10 @@ trap_fatal(frame, eva)
#endif
if (type == T_PAGEFLT) {
printf("fault virtual address = 0x%lx\n", eva);
printf("fault code = %s %s, %s\n",
printf("fault code = %s %s %s, %s\n",
code & PGEX_U ? "user" : "supervisor",
code & PGEX_W ? "write" : "read",
code & PGEX_I ? "instruction" : "data",
code & PGEX_P ? "protection violation" : "page not present");
}
printf("instruction pointer = 0x%lx:0x%lx\n",