1 |
|
2002-12-11 Yoshinori K. Okuji <okuji@enbug.org> |
2 |
|
|
3 |
|
Add a workaround for buggy BIOSes which don't pass boot drive |
4 |
|
correctly. The idea is that GRUB forces the fixed disk flag |
5 |
|
when booted from a hard disk. When BIOS loads GRUB directly, |
6 |
|
the boot drive must be either of 0x00 and 0x80, so this should |
7 |
|
work, if those BIOSes always pass zero to %dl. AFAIK, this |
8 |
|
assumption is always correct. |
9 |
|
|
10 |
|
* stage2/builtins.c (install_func): Store the fixed disk flag of |
11 |
|
the destination drive in BOOT_DRIVE_MASK in Stage 1. |
12 |
|
|
13 |
|
* stage1/stage1.h (STAGE1_BOOT_DRIVE_MASK): New macro. |
14 |
|
|
15 |
|
* stage1/stage1.S (boot_drive_mask): New variable. It is or'ed |
16 |
|
to %dl. |
17 |
|
|
18 |
2002-12-09 Yoshinori K. Okuji <okuji@enbug.org> |
2002-12-09 Yoshinori K. Okuji <okuji@enbug.org> |
19 |
|
|
20 |
* stage2/char_io.c (init_page): Change the software name from |
* stage2/char_io.c (init_page): Change the software name from |