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." _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel