[1942] 2009-01-12 Christian Franke <[email protected]>

Christian Franke <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1942
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1942
Author:   chrfranke
Date:     2009-01-12 20:23:13 +0000 (Mon, 12 Jan 2009)

Log Message:
-----------
2009-01-12  Christian Franke  <[email protected]>

	* disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
	mode check.  Fix setting of compat_use[].

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/disk/ata.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-01-10 13:07:44 UTC (rev 1941)
+++ trunk/grub2/ChangeLog	2009-01-12 20:23:13 UTC (rev 1942)
@@ -1,3 +1,8 @@
+2009-01-12  Christian Franke  <[email protected]>
+
+	* disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
+	mode check.  Fix setting of compat_use[].
+
 2009-01-10  Robert Millan  <[email protected]>
 
 	Update a few copyright years which we forgot to do in 2008 (only for

Modified: trunk/grub2/disk/ata.c
===================================================================
--- trunk/grub2/disk/ata.c	2009-01-10 13:07:44 UTC (rev 1941)
+++ trunk/grub2/disk/ata.c	2009-01-12 20:23:13 UTC (rev 1942)
@@ -504,7 +504,7 @@
   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 @@
 	{
 	  rega = grub_ata_ioaddress[i];
 	  regb = grub_ata_ioaddress2[i];
-	  compat_use[i] = 0;
+	  compat_use[i] = 1;
 	}
       else if (compat)
 	{
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.