On Mon, 28 Feb 2000, Burl Nyswonger wrote:
when you say super socket 7 chipsets -- does this include AMD?
[...]
- get rid of as much assembly as possible there's a lot that can move to C
bios/arch/i386/{poweron.s,protected_mode.s,memory.s,motherboard.c,boot.c} bios/arch/alpha/{poweron.s,protected_mode.s,memory.s,motherboard.c,boot.c} bios/payload/{your c files here}
I was thinking of the same scheme, ie: the Linux kernel layout... How about having a few directories beneath the arch-dependent dir (like Linux), think of this: for __ARCH__ in i386 alpha ppc; do
bios/arch/$__ARCH__/include/ -- includes: *.h, *.s, *.inc, ... bios/arch/$__ARCH__/tools/ -- arch-dependent tools/scripts/etc... bios/arch/$__ARCH__/boot/ -- minimal boot-up code to get processor to have a stack and full linear memory.
poweron.s is the very first set of things you do on poweron -- should be a few instructions. protected_mode.s bumps you into protected mode. On the pentium this is a few instructions. memory.s turns on memory -- this is *much* easier on the pentium in protected mode. memory.s should set up a stack and jump to C code. Motherboard.c does anything that has to be done to further use the motherboard. Boot.c gunzips the payload (either a
[...]
All of this stuff should perhaps live under the boot/ directory.
[...]
ron
-- Burl.
- To unsubscribe: send mail to majordomo@freiburg.linux.de with 'unsubscribe openbios' in the body of the message