Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 09:06:06 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r306084 - stable/11/sys/arm64/arm64
Message-ID:  <201609210906.u8L9664R067033@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609210906.u8L9664R067033>