Commit Graph
7 Commits
Author SHA1 Message Date
okuji f8111d3b54 2002-12-11 Yoshinori K. Okuji <okuji@enbug.org>
Add a workaround for buggy BIOSes which don't pass boot drive
	correctly. The idea is that GRUB forces the fixed disk flag
	when booted from a hard disk. When BIOS loads GRUB directly,
	the boot drive must be either of 0x00 and 0x80, so this should
	work, if those BIOSes always pass zero to %dl. AFAIK, this
	assumption is always correct.

	* stage2/builtins.c (install_func): Store the fixed disk flag of
	the destination drive in BOOT_DRIVE_MASK in Stage 1.

	* stage1/stage1.h (STAGE1_BOOT_DRIVE_MASK): New macro.

	* stage1/stage1.S (boot_drive_mask): New variable. It is or'ed
	to %dl.
2002-12-10 17:30:29 +00:00
okuji 1b38e4d0cf add support for saving a default entry number in your disk. 2000-09-06 03:02:39 +00:00
okuji f1c162c0c6 preserve a magic number used by Windows NT. 2000-08-26 17:28:27 +00:00
okuji 92fca67cf5 make the LBA support bitmap checks configurable at the installation time. 2000-04-18 11:22:07 +00:00
okuji 3764236446 now stage1 supports both LBA and CHS. 1999-10-12 07:36:23 +00:00
okuji 7e9a0794d0 fix potential bugs in some LBA code 1999-08-12 09:38:44 +00:00
okuji 95dfefd185 fix a bug in stage1_lba, and move all the constants in stage1 to stage1.h 1999-07-13 15:46:28 +00:00