Module Name:    src
Committed By:   palle
Date:           Thu Nov 29 20:58:36 UTC 2018

Modified Files:
        src/sys/arch/sparc64/sparc64: pmap.c

Log Message:
sun4v: fix incorrect calculation of phys addr for the mdesc - now the 
virtual-devices can (again) be detected (worked previously...)


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/sys/arch/sparc64/sparc64/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/pmap.c
diff -u src/sys/arch/sparc64/sparc64/pmap.c:1.308 src/sys/arch/sparc64/sparc64/pmap.c:1.309
--- src/sys/arch/sparc64/sparc64/pmap.c:1.308	Sat Jan 27 23:07:36 2018
+++ src/sys/arch/sparc64/sparc64/pmap.c	Thu Nov 29 20:58:36 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.308 2018/01/27 23:07:36 chs Exp $	*/
+/*	$NetBSD: pmap.c,v 1.309 2018/11/29 20:58:36 palle Exp $	*/
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.308 2018/01/27 23:07:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.309 2018/11/29 20:58:36 palle Exp $");
 
 #undef	NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define	HWREF
@@ -765,7 +765,7 @@ pmap_bootstrap(u_long kernelstart, u_lon
 
 		m_len = mdesc_get_len();
 		m_va = kdata_alloc(m_len, 16);
-		m_pa = kdatap + (m_va - kdata);
+		m_pa = pmap_kextract(m_va);
 		mdesc_init(m_va, m_pa, m_len);
 	}
 

Reply via email to