Author: andrew
Date: Wed Sep 21 09:06:06 2016
New Revision: 306084
URL: https://svnweb.freebsd.org/changeset/base/306084

Log:
  MFC r304892:
  Print both the kernel read and write translation in DDB when asking for
  a virtual to physical translation. These may be different, e.g. when a
  page is mapped as read-only.
  
  Sponsored by:   ABT Systems Ltd

Modified:
  stable/11/sys/arm64/arm64/machdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm64/arm64/machdep.c
==============================================================================
--- stable/11/sys/arm64/arm64/machdep.c Wed Sep 21 08:54:08 2016        
(r306083)
+++ stable/11/sys/arm64/arm64/machdep.c Wed Sep 21 09:06:06 2016        
(r306084)
@@ -1011,7 +1011,9 @@ DB_SHOW_COMMAND(vtop, db_show_vtop)
 
        if (have_addr) {
                phys = arm64_address_translate_s1e1r(addr);
-               db_printf("Physical address reg: 0x%016lx\n", phys);
+               db_printf("Physical address reg (read):  0x%016lx\n", phys);
+               phys = arm64_address_translate_s1e1w(addr);
+               db_printf("Physical address reg (write): 0x%016lx\n", phys);
        } else
                db_printf("show vtop <virt_addr>\n");
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to