Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2006 09:12:05 -0700
From:      Peter Grehan <grehan@freebsd.org>
To:        Aditya Godbole <aag.lists@gmail.com>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: link address
Message-ID:  <44C642D5.7020500@freebsd.org>
In-Reply-To: <2f3a439f0607250438x6403a85fi191673790d4f1baa@mail.gmail.com>
References:  <2f3a439f0607250438x6403a85fi191673790d4f1baa@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C642D5.7020500>