default link bug fix
authorYinghai Lu <yinghailu@gmail.com>
Fri, 24 Dec 2004 04:42:59 +0000 (04:42 +0000)
committerYinghai Lu <yinghailu@gmail.com>
Fri, 24 Dec 2004 04:42:59 +0000 (04:42 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1830 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/northbridge/amd/amdk8/coherent_ht.c

index 3b20b62d345da96b7b4ae183fcde402065300a35..a31ba974a8c27b1d6f934cfcd23ee1a71faea906 100644 (file)
@@ -575,7 +575,7 @@ static struct setup_smp_result setup_smp(void)
 
        /* We found 2 nodes so far */
        val = pci_read_config32(NODE_HT(7), 0x6c);
-       byte = (val>2) & 0x3; // get default link on 7 to 0
+       byte = (val>>2) & 0x3; // get default link on 7 to 0
        setup_row_local(7,1);
        setup_remote_row_direct(1, 0, byte);
 
@@ -599,7 +599,7 @@ static struct setup_smp_result setup_smp(void)
                         
                /* We found 2 nodes so far */
                val = pci_read_config32(NODE_HT(7), 0x6c);
-               byte = (val>2) & 0x3; // get default link on 7 to 0
+               byte = (val>>2) & 0x3; // get default link on 7 to 0
                setup_row_local(7,1);
                setup_remote_row_direct(1, 0, byte);
         }
@@ -676,7 +676,7 @@ static struct setup_smp_result setup_smp(void)
        setup_temp_row(0,2);
 
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
 
         setup_row_local(7,2);
         setup_remote_row_direct(2, 0, byte);
@@ -690,7 +690,7 @@ static struct setup_smp_result setup_smp(void)
        setup_temp_row(1,3);
 
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
 
         setup_row_local(7,3);
         setup_remote_row_direct(3, 1, byte);
@@ -854,7 +854,7 @@ static struct setup_smp_result setup_smp(void)
                setup_temp_row(byte,byte+2);
        }
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
         
         setup_row_local(7,4);
         setup_remote_row_direct(4, 2, byte);
@@ -868,7 +868,7 @@ static struct setup_smp_result setup_smp(void)
        }
 
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
         setup_row_local(7,5);
         setup_remote_row_direct(5, 3, byte);
         setup_remote_node(5);  /* Setup the regs on the remote node */
@@ -1058,7 +1058,7 @@ static struct setup_smp_result setup_smp(void)
                 setup_temp_row(byte,byte+2);
         }
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
 
         setup_row_local(7,6);
         setup_remote_row_direct(6, 4, byte);
@@ -1073,7 +1073,7 @@ static struct setup_smp_result setup_smp(void)
         }
 
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
         setup_row_local(7,7);
         setup_remote_row_direct(7, 5, byte);
 
@@ -1083,7 +1083,7 @@ static struct setup_smp_result setup_smp(void)
         }
        setup_temp_row(4,7);
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
 
         setup_row_local(7,7);
         setup_remote_row_direct(7, 4, byte);
@@ -1126,7 +1126,7 @@ static struct setup_smp_result setup_smp(void)
                check_connection(7);
        }
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
 //        setup_row_local(7,7);
         setup_remote_row_direct(7, 5, byte);
        //Till now 57, 75 done
@@ -1164,7 +1164,7 @@ static struct setup_smp_result setup_smp(void)
                 check_connection(7);
         }
         val = pci_read_config32(NODE_HT(7), 0x6c);
-        byte = (val>2) & 0x3; // get default link on 7 to 0
+        byte = (val>>2) & 0x3; // get default link on 7 to 0
 //        setup_row_local(7,7);
         setup_remote_row_direct(7, 6, byte);
         //Till now 67, 76 done