Fix amdht on newer compilers.

We were lucky with friendly compilers. Now they're assuming too much.

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


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5001 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Patrick Georgi 2010-01-06 10:07:31 +00:00
parent 753169dc25
commit 3d1135948a
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ void AMD_CB_EventNotify (u8 evtClass, u16 event, u8 *pEventData0)
*/ */
BOOL AMD_CB_ManualBUIDSwapList (u8 node, u16 link, u8 **List) 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 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)) { if ((CONFIG_HT_CHAIN_UNITID_BASE != 0) && (CONFIG_HT_CHAIN_END_UNITID_BASE != 0)) {
printk_debug("AMD_CB_ManualBUIDSwapList()\n"); printk_debug("AMD_CB_ManualBUIDSwapList()\n");