From owner-freebsd-arch@FreeBSD.ORG Sat Oct 17 05:12:39 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A9FC1065692 for ; Sat, 17 Oct 2009 05:12:39 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout027.mac.com (asmtpout027.mac.com [17.148.16.102]) by mx1.freebsd.org (Postfix) with ESMTP id 66EEF8FC15 for ; Sat, 17 Oct 2009 05:12:39 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp027.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KRN005M4502E890@asmtp027.mac.com>; Fri, 16 Oct 2009 21:12:04 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <200910161400.00564.jkim@FreeBSD.org> Date: Fri, 16 Oct 2009 21:12:02 -0700 Message-id: References: <20091015.085910.-520412456.imp@bsdimp.com> <4890688A-D2DB-431C-ADB6-03A39A8FD10E@mac.com> <200910161346.03066.jkim@FreeBSD.org> <200910161400.00564.jkim@FreeBSD.org> To: Jung-uk Kim X-Mailer: Apple Mail (2.1076) Cc: freebsd-arch@FreeBSD.org Subject: Re: x86BIOS and the ISA bus and low memory in general... X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2009 05:12:39 -0000 On Oct 16, 2009, at 10:59 AM, Jung-uk Kim wrote: > > It seems pmap_mapdev() on ia64 uses IA64_PHYS_TO_RR6() macro. If I > read the source correctly, then it is gives UC mapped "view" of the > physical address, right? If so, orm(4) can simply do > pmap_mapdev()/pmap_unmapdev() around bus_space_read_region_1(). Am I > right? Not quite. pmap_mapdev() assumes that the passed physical address is valid. It not being a valid physical address was the pivotal problem and the reason why I limited orm(4) to i386 and amd64. -- Marcel Moolenaar xcllnt@mac.com