All of lore.kernel.org
 help / color / mirror / Atom feed
* Moving kernel_entry to LOADADDR
@ 2001-10-19  0:58 Gerald Champagne
  2001-10-19  1:13 ` Geoffrey Espin
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Gerald Champagne @ 2001-10-19  0:58 UTC (permalink / raw)
  To: linux-mips@oss.sgi.com

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-10-24 11:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-19  0:58 Moving kernel_entry to LOADADDR Gerald Champagne
2001-10-19  1:13 ` 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

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.