[coreboot] [commit] r5001 - trunk/src/northbridge/amd/amdht

svn at coreboot.org svn at coreboot.org
Wed Jan 6 11:07:31 CET 2010


Author: oxygene
Date: 2010-01-06 11:07:31 +0100 (Wed, 06 Jan 2010)
New Revision: 5001

Modified:
   trunk/src/northbridge/amd/amdht/ht_wrapper.c
Log:
Fix amdht on newer compilers.
We were lucky with friendly compilers. Now they're assuming too much.

Identified-by: Myles Watson <mylesgw at gmail.com>
Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Ronald G. Minnich <rminnich at gmail.com>


Modified: trunk/src/northbridge/amd/amdht/ht_wrapper.c
===================================================================
--- trunk/src/northbridge/amd/amdht/ht_wrapper.c	2010-01-06 09:14:08 UTC (rev 5000)
+++ trunk/src/northbridge/amd/amdht/ht_wrapper.c	2010-01-06 10:07:31 UTC (rev 5001)
@@ -116,7 +116,7 @@
  */
 BOOL AMD_CB_ManualBUIDSwapList (u8 node, u16 link, u8 **List)
 {
-	const u8 swaplist[] = { 0xFF, CONFIG_HT_CHAIN_UNITID_BASE, CONFIG_HT_CHAIN_END_UNITID_BASE, 0xFF };
+	static const u8 swaplist[] = { 0xFF, CONFIG_HT_CHAIN_UNITID_BASE, CONFIG_HT_CHAIN_END_UNITID_BASE, 0xFF };
 	/* If the BUID was adjusted in early_ht we need to do the manual override */
 	if ((CONFIG_HT_CHAIN_UNITID_BASE != 0) && (CONFIG_HT_CHAIN_END_UNITID_BASE != 0)) {
 		printk_debug("AMD_CB_ManualBUIDSwapList()\n");





More information about the coreboot mailing list