Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MfYuU-0001GT-Eb for mharc-grub-devel@gnu.org; Mon, 24 Aug 2009 08:44:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfYuS-0001Ej-FC for grub-devel@gnu.org; Mon, 24 Aug 2009 08:44:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfYuP-0001B8-1b for grub-devel@gnu.org; Mon, 24 Aug 2009 08:44:28 -0400 Received: from [199.232.76.173] (port=40836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfYuO-0001Ap-NC for grub-devel@gnu.org; Mon, 24 Aug 2009 08:44:24 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:44521 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfYuO-0007Sb-6u for grub-devel@gnu.org; Mon, 24 Aug 2009 08:44:24 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MfYuM-0003Ob-A2 for grub-devel@gnu.org; Mon, 24 Aug 2009 14:44:22 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MfYuL-0005Ap-F4 for grub-devel@gnu.org; Mon, 24 Aug 2009 14:44:21 +0200 Date: Mon, 24 Aug 2009 14:44:21 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090824124421.GA19876@thorin> References: <20090812153520.GA11691@riva.ucam.org> <20090812221431.GD11691@riva.ucam.org> <20090824092406.GE11691@riva.ucam.org> <20090824122352.GB18956@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090824122352.GB18956@thorin> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] Detect key modifier status in 'sleep --interruptible' X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 12:44:28 -0000 On Mon, Aug 24, 2009 at 02:23:52PM +0200, Robert Millan wrote: > Index: include/grub/i386/pc/memory.h > =================================================================== > --- include/grub/i386/pc/memory.h (revision 2520) > +++ include/grub/i386/pc/memory.h (working copy) > @@ -78,6 +78,15 @@ > /* The data segment of the pseudo real mode. */ > #define GRUB_MEMORY_MACHINE_PSEUDO_REAL_DSEG 0x20 > > +#define GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR 0x400 > + > +static struct grub_machine_bios_data_area > +{ > + grub_uint8_t unused1[0x17]; > + grub_uint16_t keyboard_status; /* 0x17 */ > + grub_uint8_t unused2[0xf0 - 0x19]; > +} > + Btw, Colin pointed at this URL: http://heim.ifi.uio.no/~stanisls/helppc/bios_data_area.html I suppose it'd be a good idea to include it in a comment next to the struct definition. -- 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."