Date: Sun, 22 Sep 2019 19:20:38 +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: r352606 - head/sys/amd64/amd64 Message-ID: <201909221920.x8MJKcpb044346@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun Sep 22 19:20:37 2019 New Revision: 352606 URL: https://svnweb.freebsd.org/changeset/base/352606 Log: amd64: minor tweaks to pat decoding in sysctl vm.pmap.kernel_maps. Decode PAT_UNCACHED. When unknown pat mode is encountered, print the pte bits combination instead of the index, which is always 8. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D21738 Modified: head/sys/amd64/amd64/pmap.c Modified: head/sys/amd64/amd64/pmap.c ============================================================================== --- head/sys/amd64/amd64/pmap.c Sun Sep 22 18:32:05 2019 (r352605) +++ head/sys/amd64/amd64/pmap.c Sun Sep 22 19:20:37 2019 (r352606) @@ -10023,6 +10023,9 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_ case PAT_UNCACHEABLE: mode = "UC"; break; + case PAT_UNCACHED: + mode = "U-"; + break; case PAT_WRITE_PROTECTED: mode = "WP"; break; @@ -10031,7 +10034,7 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_ break; default: printf("%s: unknown PAT mode %#x for range 0x%016lx-0x%016lx\n", - __func__, i, range->sva, eva); + __func__, pat_idx, range->sva, eva); mode = "??"; break; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909221920.x8MJKcpb044346>