64bit loader

David O'Brien obrien at freebsd.org
Tue May 31 07:32:56 PDT 2005


On Tue, May 31, 2005 at 02:17:02PM +0200, Michael Reifenberger wrote:
> Hi,
> as it seems we are building the amd64 loader in i386 compatible
> mode (compiling -m32...)
> This breaks the building of testmain in sys/boot/ficl at least
> as -m32 doesnt seem to be well supported until now on amd64.

Are you sure (cd /sys/boot/ficl ; make testmain) works on 32-bit systems?
It fails on my 6-CURRENT system (though for a different reason).

> Wouldn't is be possible to switch to 64bit long mode in the
> boot0 loader

Ha!!  We can only have 1 sector worth of code in boot0.  At this point we
only have a few bytes of free code space.  No where near enough to do the
long mode switch.

> (I'm trying to use and upgrade our ficl loader BTW)

One is able to use and upgrade one's ficl loader loader on AMD64 just
fine.  So what is the real problem you are hitting?
 
> BTW2: Our sys/boot hierarchy isn't very intuitive to start with...

You can thank the bozo boot requirements of the PeeCee architecture for
that.

-- 
-- David  (obrien at FreeBSD.org)


More information about the freebsd-amd64 mailing list