Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Make pmap_db_pte_print more terse s...



details:   https://anonhg.NetBSD.org/src/rev/598882ed114a
branches:  trunk
changeset: 453518:598882ed114a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Aug 15 10:24:26 2019 +0000

description:
Make pmap_db_pte_print more terse so it's quicker on serial consoles

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diffs (58 lines):

diff -r add2a899e0c7 -r 598882ed114a sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Thu Aug 15 09:07:34 2019 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Thu Aug 15 10:24:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.42 2019/08/12 10:28:04 skrll Exp $  */
+/*     $NetBSD: pmap.c,v 1.43 2019/08/15 10:24:26 skrll Exp $  */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.42 2019/08/12 10:28:04 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.43 2019/08/15 10:24:26 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -2366,11 +2366,9 @@
                pr(", PA=%lx", l3pte_pa(pte));
 
                pr(", %s", (pte & LX_BLKPAG_UXN) ?
-                   "UXN      " :
-                   "user-exec");
+                   "UXN" : "UX ");
                pr(", %s", (pte & LX_BLKPAG_PXN) ?
-                  "PXN        " :
-                  "kernel-exec");
+                  "PXN" :  "PX ");
 
                if (pte & LX_BLKPAG_CONTIG)
                        pr(", CONTIG");
@@ -2401,13 +2399,13 @@
 
                switch (pte & LX_BLKPAG_ATTR_MASK) {
                case LX_BLKPAG_ATTR_NORMAL_WB:
-                       pr(", WRITEBACK");
+                       pr(", WB");
                        break;
                case LX_BLKPAG_ATTR_NORMAL_NC:
-                       pr(", NOCACHE");
+                       pr(", NC");
                        break;
                case LX_BLKPAG_ATTR_NORMAL_WT:
-                       pr(", WHITETHRU");
+                       pr(", WT");
                        break;
                case LX_BLKPAG_ATTR_DEVICE_MEM:
                        pr(", DEVICE");
@@ -2421,7 +2419,7 @@
                if (pte & LX_BLKPAG_OS_WRITE)
                        pr(", pmap_write");
                if (pte & LX_BLKPAG_OS_WIRED)
-                       pr(", pmap_wired");
+                       pr(", wired");
        } else {
                pr(" **ILLEGAL TYPE**");
        }



Home | Main Index | Thread Index | Old Index