From: Gerald Champagne <gerald.champagne@esstech.com>
To: "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
Subject: Moving kernel_entry to LOADADDR
Date: Thu, 18 Oct 2001 19:58:58 -0500 [thread overview]
Message-ID: <3BCF7AD2.2000000@esstech.com> (raw)
I'm planning to work with a very minimal boot loader, and I'd like
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.
But wait a minute... the 0x280 is there to leave room for the exception
vectors. Doesn't that only make sense if LOADADDR=0x80000000? Isn't
this allocating the space for the exception vectors twice? Why not
remove the .fill, then the kernel entry point will always be exactly
LOADADDR? This would break any configuration that has LOADADDR=0x80000000,
but the only configuration like that is CONFIG_ALGOR_P4032, and that could
easily be modified to LOADADDR=0x80000280 to get the same effect.
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?
Thanks.
Gerald
next reply other threads:[~2001-10-19 0:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 0:58 Gerald Champagne [this message]
2001-10-19 1:13 ` Moving kernel_entry to LOADADDR Geoffrey Espin
2001-10-19 7:31 ` Gleb O. Raiko
2001-10-19 13:20 ` Maciej W. Rozycki
2001-10-19 15:11 ` Mike McDonald
2001-10-19 15:18 ` Gerald Champagne
2001-10-19 15:21 ` Justin Carlson
2001-10-19 15:56 ` Mike McDonald
2001-10-24 11:16 ` Florian Lohoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BCF7AD2.2000000@esstech.com \
--to=gerald.champagne@esstech.com \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.