svn commit: r304892 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Sat Aug 27 10:30:21 UTC 2016
Author: andrew
Date: Sat Aug 27 10:30:20 2016
New Revision: 304892
URL: https://svnweb.freebsd.org/changeset/base/304892
Log:
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.
MFC after: 1 month
Sponsored by: ABT Systems Ltd
Modified:
head/sys/arm64/arm64/machdep.c
Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c Sat Aug 27 10:04:48 2016 (r304891)
+++ head/sys/arm64/arm64/machdep.c Sat Aug 27 10:30:20 2016 (r304892)
@@ -1089,7 +1089,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");
}
More information about the svn-src-head
mailing list