From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 07:52:12 2003 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 D10F437B401 for ; Mon, 9 Jun 2003 07:52:12 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DA7D43FAF for ; Mon, 9 Jun 2003 07:52:12 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 28936 invoked from network); 9 Jun 2003 14:51:57 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 9 Jun 2003 14:51:57 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h59EppGI004699; Mon, 9 Jun 2003 10:51:51 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200306090827.AA151912602@gatorzone.com> Date: Mon, 09 Jun 2003 10:51:52 -0400 (EDT) From: John Baldwin To: cd_freebsd cc: freebsd-hackers@freebsd.org Subject: Re: Mapping Physical Memory without a Device? 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: Mon, 09 Jun 2003 14:52:13 -0000 On 09-Jun-2003 cd_freebsd wrote: > John Baldwin wrote: > >>> The first 1 meg of memory is 1:1 mapped at KERNBASE. IOW, you can get to the BIOS at KERNBASE >>> + 0xc0000. That should cover these first two items. > > Even on non-i386 machines? No, other machines don't have BIOSes. :) > I guess it really doesn't matter since I am reading the BIOS area to detect that I am running on > a specific type machine. The other calls are ignored if the data read does not equal the expected > values. Your code would have to be compiled to run on another arch anyways. If it is truly necessary, you can always use #ifdef __i386__ to determine if you are running on an i386. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/