From: Robert Millan <rmh@aybabtu.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: gate A20 and i386-qemu port
Date: Sat, 14 Nov 2009 18:26:11 +0100 [thread overview]
Message-ID: <20091114172611.GA18813@thorin> (raw)
In-Reply-To: <20091114153822.GB7084@thorin>
On Sat, Nov 14, 2009 at 04:38:22PM +0100, Robert Millan wrote:
> > Following code can check A20:
> > *((volatile grub_uint8_t *) 0x200000) = 0;
> > *((volatile grub_uint8_t *) 0x300000) = 1;
> > if (*((volatile grub_uint8_t *) 0x200000))
> > grub_printf ("Expect bugs\n");
> > else
> > grub_printf ("You're safe\n");
>
> Yeah, in fact we have gate_a20_check_state() to check for this, but only
> in i386-pc.
>
> I find it surprising that i386-qemu works at all without it. I guess it
> only works because the high mem area that would overlap with our code in
> 0x8200 is never used.
>
> I'll look into this...
It appears that QEMU hardware already starts with A20 enabled. I suppose it's
bochsbios who disables it. In any case, I made my vbe-on-coreboot branch
enable it.
Unfortunately, this wasn't the cause that prevented vbetest/vbeinfo from
working :-/
--
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."
prev parent reply other threads:[~2009-11-14 17:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-14 10:59 gate A20 and i386-qemu port Robert Millan
2009-11-14 12:48 ` Vladimir 'phcoder' Serbinenko
2009-11-14 15:38 ` Robert Millan
2009-11-14 17:26 ` Robert Millan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091114172611.GA18813@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.