Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2017 12:24:31 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317738 - head/sys/arm64/arm64
Message-ID:  <201705031224.v43COVYk046929@repo.freebsd.org>

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



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