2009-01-12 Christian Franke <franke@computer.org>
* disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility mode check. Fix setting of compat_use[].
This commit is contained in:
parent
f36cc10867
commit
093af1fe82
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-01-12 Christian Franke <franke@computer.org>
|
||||
|
||||
* disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
|
||||
mode check. Fix setting of compat_use[].
|
||||
|
||||
2009-01-10 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
Update a few copyright years which we forgot to do in 2008 (only for
|
||||
|
|
|
@ -504,7 +504,7 @@ grub_ata_pciinit (int bus, int device, int func,
|
|||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
/* Set to 0 when the channel operated in compatibility mode. */
|
||||
int compat = (class >> (2 * i)) & 1;
|
||||
int compat = (class >> (8 + 2 * i)) & 1;
|
||||
|
||||
rega = 0;
|
||||
regb = 0;
|
||||
|
@ -515,7 +515,7 @@ grub_ata_pciinit (int bus, int device, int func,
|
|||
{
|
||||
rega = grub_ata_ioaddress[i];
|
||||
regb = grub_ata_ioaddress2[i];
|
||||
compat_use[i] = 0;
|
||||
compat_use[i] = 1;
|
||||
}
|
||||
else if (compat)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue