From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 23:52:28 2005 Return-Path: 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 B24DA16A4CE for ; Thu, 12 May 2005 23:52:28 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB47643D77 for ; Thu, 12 May 2005 23:52:27 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 6D3B1651F4 for ; Fri, 13 May 2005 00:51:08 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 95665-05-2 for ; Fri, 13 May 2005 00:51:08 +0100 (BST) Received: from empiric.dek.spc.org (82-35-116-62.cable.ubr07.dals.blueyonder.co.uk [82.35.116.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id BE964651EB for ; Fri, 13 May 2005 00:51:07 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 3CB7F623B; Fri, 13 May 2005 00:52:21 +0100 (BST) Date: Fri, 13 May 2005 00:52:21 +0100 From: Bruce M Simpson To: freebsd-hackers@FreeBSD.org Message-ID: <20050512235221.GA37248@empiric.icir.org> Mail-Followup-To: freebsd-hackers@FreeBSD.org References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> <20050512195810.GA61334@skatecity> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050512195810.GA61334@skatecity> Subject: Re: Accessing BIOS memory range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 23:52:28 -0000 On Thu, May 12, 2005 at 09:58:10PM +0200, alexander wrote: > I'm writing a little app in 32 bit x86 (386 minumum) assembly, where I need to access > some memory in the BIOS range. The real address is 40h:6Ch (virtual = ((0x40<<4) | 0x6C)). Just use /dev/mem. It will do what you want. Look at src/tools/tools/pirtool for a simple example. BMS