- Allow coherent_ht.c to compile uniprocessor
authorEric Biederman <ebiederm@xmission.com>
Sat, 13 Nov 2004 03:47:52 +0000 (03:47 +0000)
committerEric Biederman <ebiederm@xmission.com>
Sat, 13 Nov 2004 03:47:52 +0000 (03:47 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1783 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/northbridge/amd/amdk8/coherent_ht.c

index 9152ea80a543a09193c6d42f601579609fb33593..cf0660cba9662e492e5e49ce755dd8a0ea7d835e 100644 (file)
@@ -142,6 +142,12 @@ static void enable_routing(u8 node)
        print_spew(" done.\r\n");
 }
 
+static void fill_row(u8 node, u8 row, u32 value)
+{
+       pci_write_config32(NODE_HT(node), 0x40+(row<<2), value);
+}
+
+
 #if CONFIG_MAX_CPUS > 1
 
 static void rename_temp_node(u8 node)
@@ -275,11 +281,6 @@ static int optimize_connection(device_t node1, uint8_t link1, device_t node2, ui
        return needs_reset;
 }
 
-static void fill_row(u8 node, u8 row, u32 value)
-{
-       pci_write_config32(NODE_HT(node), 0x40+(row<<2), value);
-}
-
 static void setup_row(u8 source, u8 dest, u8 nodes)
 {
        fill_row(source,dest,generate_row(source,dest,nodes));