This is the first in a series of patches that removes a bug and some glitches from GRUB stage 1. This is against grub-0.94 (alpha) Submitted by Wolf Lammen, ookami1gmxde I looked through the complete code of stage 1 and found some oddities. This patch addresses one: The use of cli in the very beginning of the code. Grub patches an address within the code directly, so when you insert new instructions, this address moves around. The way this patch modifies stage 1 requires patching the header file as well. --- stage1.h 2004-02-08 16:59:49.000000000 +0100 +++ stage1.h.new 2004-02-08 16:53:19.000000000 +0100 @@ -52,7 +52,7 @@ #define STAGE1_STAGE2_SEGMENT 0x48 /* The offset of BOOT_DRIVE_MASK. */ -#define STAGE1_BOOT_DRIVE_MASK 0x4d +#define STAGE1_BOOT_DRIVE_MASK 0x54 /* The offset of a magic number used by Windows NT. */ #define STAGE1_WINDOWS_NT_MAGIC 0x1b8