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
This commit is contained in:
brooks 2013-10-22 21:27:22 +00:00
parent 15e1002387
commit deb8ffdc04

View File

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