From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 25 16:12:28 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D9D816A4DD for ; Tue, 25 Jul 2006 16:12:28 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D27543D72 for ; Tue, 25 Jul 2006 16:12:24 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [192.168.0.14] (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BZH45541 (AUTH peterg@ptree32.com.au); Wed, 26 Jul 2006 02:12:11 +1000 (EST) Message-ID: <44C642D5.7020500@freebsd.org> Date: Tue, 25 Jul 2006 09:12:05 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Aditya Godbole References: <2f3a439f0607250438x6403a85fi191673790d4f1baa@mail.gmail.com> In-Reply-To: <2f3a439f0607250438x6403a85fi191673790d4f1baa@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: link address X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 16:12:28 -0000 Hi Aditya, > I'm a bit confused about the link address of the kernel in > freebsd-ppc. The linker script says its 0x00100000. However on the > i386 it seems to be 3GB (KERNBASE). > Does the machine independant code not assume anything about the > location of the kernel in virtual memory? That's right. On FreeBSD/ppc, kernel text/data/bss is mapped 1:1 mainly for simplicity - the loader's job is a lot easier, and it allows the early part of the kernel to run with the MMU disabled if so required. The load address is somewhat arbirtrary but it can't be zero since that's where vectors live, and boot loader variables are often stored below 0x100000. later, Peter.