svn commit: r317738 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Wed May 3 12:24:32 UTC 2017


Author: andrew
Date: Wed May  3 12:24:31 2017
New Revision: 317738
URL: https://svnweb.freebsd.org/changeset/base/317738

Log:
  Print all virtual addresses in the show vtop ddb command. The results may
  be different with PAN enabled.
  
  MFC after:	1 week
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/arm64/arm64/machdep.c

Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c	Wed May  3 12:23:58 2017	(r317737)
+++ head/sys/arm64/arm64/machdep.c	Wed May  3 12:24:31 2017	(r317738)
@@ -1141,9 +1141,13 @@ DB_SHOW_COMMAND(vtop, db_show_vtop)
 
 	if (have_addr) {
 		phys = arm64_address_translate_s1e1r(addr);
-		db_printf("Physical address reg (read):  0x%016lx\n", phys);
+		db_printf("EL1 physical address reg (read):  0x%016lx\n", phys);
 		phys = arm64_address_translate_s1e1w(addr);
-		db_printf("Physical address reg (write): 0x%016lx\n", phys);
+		db_printf("EL1 physical address reg (write): 0x%016lx\n", phys);
+		phys = arm64_address_translate_s1e0r(addr);
+		db_printf("EL0 physical address reg (read):  0x%016lx\n", phys);
+		phys = arm64_address_translate_s1e0w(addr);
+		db_printf("EL0 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