[Top] [All Lists]

Re: Moving kernel_entry to LOADADDR

To: Gerald Champagne <>
Subject: Re: Moving kernel_entry to LOADADDR
From: Geoffrey Espin <>
Date: Thu, 18 Oct 2001 18:13:22 -0700
Cc: "" <>
In-reply-to: <>; from Gerald Champagne on Thu, Oct 18, 2001 at 07:58:58PM -0500
References: <>

> to hard-code a jump to kernel_entry in my boot loader.  I got tired
> of having kernel_entry moving around, so I just moved it to the top
> of head.S, just afte the ".fill 0x280".  That places kernel_entry at
> the same place every time.  It's always at LOADADDR+0x280.

Don't know about all .fill & exception vecs... the trick I use in
my (vr)boot loader...

KERNEL_ENTRY=$(shell awk '/kernel_entry/{print "0x" $$1}' 

And compile boot.S or whatever your bootloader is.

But a fixed, well-known offset can't be a bad thing either.

Geoffrey Espin

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