From owner-freebsd-hackers Sat Jan 11 15:14:48 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF22237B401 for ; Sat, 11 Jan 2003 15:14:46 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BE3E43F18 for ; Sat, 11 Jan 2003 15:14:46 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.6/8.12.6) with ESMTP id h0BNEeYp048493; Sat, 11 Jan 2003 15:14:40 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.6/8.12.6/Submit) id h0BNEdZP048492; Sat, 11 Jan 2003 15:14:39 -0800 (PST) Date: Sat, 11 Jan 2003 15:14:39 -0800 (PST) From: Matthew Dillon Message-Id: <200301112314.h0BNEdZP048492@apollo.backplane.com> To: Jake Burkholder Cc: hackers@FreeBSD.ORG, "Alan L. Cox" , Tor.Egge@cvsup.no.freebsd.org Subject: Re: vmapbuf/vunmapbuf consolidation -- need alpha/ia64 review. References: <20021102171534X.tegge@cvsup.no.freebsd.org> <3DCD7F3A.DE013857@imimic.com> <200301092137.h09Lbo0E005483@apollo.backplane.com> <3E1DF369.81ADB566@imimic.com> <200301100058.h0A0wiqo000380@apollo.backplane.com> <3E1FF17B.455C2A71@imimic.com> <200301112051.h0BKpiWr047795@apollo.backplane.com> <20030111161850.C212@locore.ca> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :with the pmap of the current process, pmap_kextract won't work even for :the current address space because kva is not mapped into each process's :pmap. : :... : pmap = &curproc->p_vmspace->vm_pmap; :... : pa = trunc_page(pmap_extract(pmap, (vm_offset_t)addr)); :... : : :This should work for all platforms. : :The rest looks fine apart from style bugs. : :Jake All right. I'll double check that pmap_extract() works and make the change. I'm glad I asked. I remembered that there was something strange about one of the architectures but I could not recall what it was. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message