This is the forth in a series of patches that removes a bug and some glitches from GRUB stage 1. This is against grub-0.94 (alpha), my first three patches applied. Submitted by Wolf Lammen, ookami1gmxde I looked through the complete code of stage 1 and found some oddities. This patch addresses one: makes boot_drive_mask a variable at a fixed location. Impact: increases code by 1 byte, eases maintainance of the code. Use this patch together with stage1.S.patch.4. See that file contains for more information. --- stage1.h 2004-02-09 06:27:23.000000000 +0100 +++ stage1.h.new 2004-02-09 06:41:36.000000000 +0100 @@ -39,8 +39,8 @@ /* The offset of BOOT_DRIVE. */ #define STAGE1_BOOT_DRIVE 0x40 -/* The offset of FORCE_LBA. */ -#define STAGE1_FORCE_LBA 0x41 +/* The offset of BOOT_DRIVE_MASK. */ +#define STAGE1_BOOT_DRIVE_MASK 0x41 /* The offset of STAGE2_ADDRESS. */ #define STAGE1_STAGE2_ADDRESS 0x42 @@ -51,8 +51,8 @@ /* The offset of STAGE2_SEGMENT. */ #define STAGE1_STAGE2_SEGMENT 0x48 -/* The offset of BOOT_DRIVE_MASK. */ -#define STAGE1_BOOT_DRIVE_MASK 0x54 +/* The offset of FORCE_LBA. */ +#define STAGE1_FORCE_LBA 0x49 /* The offset of a magic number used by Windows NT. */ #define STAGE1_WINDOWS_NT_MAGIC 0x1b8