Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 2004 01:45:47 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 61983 for review
Message-ID:  <200409230145.i8N1jlSu095801@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=61983

Change 61983 by marcel@marcel_nfs on 2004/09/23 01:45:46

	IFC @61981

Affected files ...

.. //depot/projects/ia64/lib/libkvm/kvm_ia64.c#5 integrate

Differences ...

==== //depot/projects/ia64/lib/libkvm/kvm_ia64.c#5 (text+ko) ====

@@ -1,4 +1,4 @@
-/* $FreeBSD: src/lib/libkvm/kvm_ia64.c,v 1.5 2004/09/22 20:26:33 marcel Exp $ */
+/* $FreeBSD: src/lib/libkvm/kvm_ia64.c,v 1.6 2004/09/23 00:05:20 marcel Exp $ */
 /*	$NetBSD: kvm_alpha.c,v 1.7.2.1 1997/11/02 20:34:26 mellon Exp $	*/
 
 /*
@@ -196,9 +196,9 @@
 		pgaddr += (pgno * sizeof(pte));
 		if (kvm_read(kd, pgaddr, &pte, sizeof(pte)) != sizeof(pte))
 			goto fail;
-		if (!pte.pte_p)
+		if (!(pte.pte & PTE_PRESENT))
 			goto fail;
-		va = ((u_long)pte.pte_ppn << 12) + (va & (pgsz - 1));
+		va = (pte.pte & PTE_PPN_MASK) + (va & (pgsz - 1));
 		return (_kvm_pa2off(kd, va, pa, pgsz));
 	}
 



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