grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] swap real_to_prot() and prot_to_real() (Re: [PATCH] i386-qem


From: Pavel Roskin
Subject: Re: [PATCH] swap real_to_prot() and prot_to_real() (Re: [PATCH] i386-qemu port)
Date: Sun, 21 Jun 2009 21:56:42 -0400

On Sun, 2009-06-21 at 21:52 +0200, Robert Millan wrote:
> When doing the i386-coreboot port I made this choice completely backwards.
> 
> I thought real_to_prot() was only useful on i386-pc, because we needed it
> for returning from BIOS, and prot_to_real() was useful elsewhere, because
> the Linux loader would use it.
> 
> Turns out we need real_to_prot() on i386-qemu for the initial transition
> to i386 mode, AND we don't need prot_to_real() anywhere other than i386-pc,
> because OSes that expect to be loaded in i8086 mode are going to rely on
> BIOS calls.
> 
> So this patch swaps them.  real_to_prot() goes to realmode.S and
> prot_to_real() back to startup.S.

You have my approval as long as it compiles and doesn't introduce any
warnings.

I'm attaching the script I'm using to test all platforms at once.  The
compiler path needs to be adjusted, as well as the target names, as they
affect search for the target compiler.  That's the version with qemu
support.  If every Log2make is empty, please go ahead.

-- 
Regards,
Pavel Roskin

Attachment: grub-all-qemu
Description: application/shellscript


reply via email to

[Prev in Thread] Current Thread [Next in Thread]