+2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
+
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
Split config.h for util and core.
*/
. = _start + GRUB_BOOT_MACHINE_DRIVE_CHECK
boot_drive_check:
- jmp 1f /* grub-setup may overwrite this jump */
+ jmp 3f /* grub-setup may overwrite this jump */
testb $0x80, %dl
- jnz 1f
+ jz 2f
+3:
+ /* Ignore %dl different from 0-0x0f and 0x80-0x8f. */
+ testb $0x70, %dl
+ jz 1f
+2:
movb $0x80, %dl
1:
-
/*
* ljmp to the next instruction because some bogus BIOSes
* jump to 07C0:0000 instead of 0000:7C00.