All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: gate A20 and i386-qemu port
Date: Sat, 14 Nov 2009 13:48:00 +0100	[thread overview]
Message-ID: <4AFEA700.4030204@gmail.com> (raw)
In-Reply-To: <20091114105926.GA9262@aybabtu.com>

[-- Attachment #1: Type: text/plain, Size: 718 bytes --]

Robert Millan wrote:
> I'm wondering how come the i386-qemu port works if none of its
> initialization code takes into account gate A20.  Does this
> mean it's supposed to be already disabled in initial CPU state,
> and only enabled by BIOS?
>
> Or maybe the code only works by chance and would break unexpectedly
> in specific situations?
>
>   
Without disabling A20 even and odd mibibytes will be squashed together.
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");

-- 
Regards
Vladimir 'phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

  reply	other threads:[~2009-11-14 12:48 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 [this message]
2009-11-14 15:38   ` Robert Millan
2009-11-14 17:26     ` Robert Millan

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=4AFEA700.4030204@gmail.com \
    --to=phcoder@gmail.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.