linux-mips
[Top] [All Lists]

Re: Moving kernel_entry to LOADADDR

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: Moving kernel_entry to LOADADDR
From: Mike McDonald <mikemac@mikemac.com>
Date: Fri, 19 Oct 2001 08:11:40 -0700
Cc: Gerald Champagne <gerald.champagne@esstech.com>, "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
In-reply-to: Your message of "Fri, 19 Oct 2001 15:20:33 +0200." <Pine.GSO.3.96.1011019152007.1657E-100000@delta.ds2.pg.gda.pl>
Sender: owner-linux-mips@oss.sgi.com
>Date: Fri, 19 Oct 2001 15:20:33 +0200 (MET DST)
>From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
>To: Gerald Champagne <gerald.champagne@esstech.com>
>Subject: Re: Moving kernel_entry to LOADADDR
>
>On Thu, 18 Oct 2001, Gerald Champagne wrote:
>
>> I also removed the .fill, and now kernel_entry is always exactly LOADADDR,
>> and that makes my bootloader easier to maintain.
>> 
>> Is this worth changing in cvs, or did I miss something?
>
> How about just getting it from the ELF header?  It's trivial.

  Because a bare bones bootloader may not know anything about ELF. The
simplest solution is to just stick a "jmp start_kernel" at LOADADDR
right before the fill. Then the load address and the entry point are
the same. Once the exception vectors get loaded, they'll overwrite the
jmp, so no space is wasted and none of the LOADADDRs have to be
changed.

  Mike McDonald
  mikemac@mikemac.com

<Prev in Thread] Current Thread [Next in Thread>