grub-devel
[Top][All Lists]
Advanced

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

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


From: Robert Millan
Subject: [PATCH] swap real_to_prot() and prot_to_real() (Re: [PATCH] i386-qemu port)
Date: Sun, 21 Jun 2009 21:52:37 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

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.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."

Attachment: real_prot.diff
Description: Text Data


reply via email to

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