svn commit: r251049 - stable/9/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Tue May 28 05:25:11 UTC 2013


Author: kib
Date: Tue May 28 05:25:10 2013
New Revision: 251049
URL: http://svnweb.freebsd.org/changeset/base/251049

Log:
  MFC r250850:
  Add amd64-specific ddb command 'show phys2dmap'.

Modified:
  stable/9/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/9/sys/amd64/amd64/pmap.c	Tue May 28 05:22:45 2013	(r251048)
+++ stable/9/sys/amd64/amd64/pmap.c	Tue May 28 05:25:10 2013	(r251049)
@@ -5543,4 +5543,16 @@ DB_SHOW_COMMAND(pte, pmap_print_pte)
 	pte = pmap_pde_to_pte(pde, va);
 	db_printf(" pte %#016lx\n", *pte);
 }
+
+DB_SHOW_COMMAND(phys2dmap, pmap_phys2dmap)
+{
+	vm_paddr_t a;
+
+	if (have_addr) {
+		a = (vm_paddr_t)addr;
+		db_printf("0x%jx\n", (uintmax_t)PHYS_TO_DMAP(a));
+	} else {
+		db_printf("show phys2dmap addr\n");
+	}
+}
 #endif


More information about the svn-src-stable-9 mailing list