Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 sun4v: fix incorrect calculation of...



details:   https://anonhg.NetBSD.org/src/rev/fc3e1c9a4af8
branches:  trunk
changeset: 446296:fc3e1c9a4af8
user:      palle <palle%NetBSD.org@localhost>
date:      Thu Nov 29 20:58:36 2018 +0000

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

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f436fbf45f3b -r fc3e1c9a4af8 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Thu Nov 29 20:33:09 2018 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Thu Nov 29 20:58:36 2018 +0000
@@ -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 @@
 
                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);
        }
 



Home | Main Index | Thread Index | Old Index