Re: Booting a modular kernel through a multiple streams file / Making Linux multiboot capable and grub loading kernel modules at boot time.

From: H. Peter Anvin (hpa@zytor.com)
Date: Thu Dec 20 2001 - 13:35:48 EST


Eric W. Biederman wrote:

>
> Agreed. And to completely dispel the myth. Etherboot has been doing
> something similar for years. It disables interrupts in 32bit mode so
> it doesn't have quite as much work to do but otherwise it is pretty
> much the same picture.
>

If you disable interrupts in 32-bit mode a lot of things will not work.

> I finally tracked down the reason why Setup.S is run in real mode,
> instead of being called from protected mode. And that is in extremely
> hostile environments (like loadlin works in) loading the kernel wrecks
> the firmware callbacks. So you must do your BIOS calls as a special
> case before you switch to protected mode.

No, it's because it was easier to do it that way -- do all BIOS calls
once and for all in the early part of the execution of the kernel, and
then forget about it.

        -hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Dec 23 2001 - 21:00:22 EST