diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-09-25 17:24:10 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-09-25 17:24:10 +0000 |
commit | 86224f634a74bd38823c620beb647276c9c8d95c (patch) | |
tree | c52b19665a620db5ccae2d97f88fff590c567ab9 /src | |
parent | 7f43dc1060adfaf82b7b58be9a26dc714d686f5a (diff) | |
download | coreboot-86224f634a74bd38823c620beb647276c9c8d95c.tar.xz |
Mark read-only data as read-only, so the global vars test doesn't fail on it.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5846 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/northbridge/amd/amdht/h3finit.c | 2 | ||||
-rw-r--r-- | src/northbridge/amd/amdht/h3finit.h | 2 | ||||
-rw-r--r-- | src/northbridge/amd/amdht/ht_wrapper.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/amd/amdht/h3finit.c b/src/northbridge/amd/amdht/h3finit.c index a9387186d7..0ea78017be 100644 --- a/src/northbridge/amd/amdht/h3finit.c +++ b/src/northbridge/amd/amdht/h3finit.c @@ -899,7 +899,7 @@ static void processLink(u8 node, u8 link, sMainData *pDat) u32 unitIDcnt; SBDFO currentPtr; u8 depth; - u8 *pSwapPtr; + const u8 *pSwapPtr; SBDFO lastSBDFO = ILLEGAL_SBDFO; u8 lastLink = 0; diff --git a/src/northbridge/amd/amdht/h3finit.h b/src/northbridge/amd/amdht/h3finit.h index b175fe1e25..ae581c28a0 100644 --- a/src/northbridge/amd/amdht/h3finit.h +++ b/src/northbridge/amd/amdht/h3finit.h @@ -195,7 +195,7 @@ typedef struct { * * --------------------------------------------------------------------------------------- */ - BOOL (*AMD_CB_ManualBUIDSwapList)(u8 Node, u8 Link, u8 **List); + BOOL (*AMD_CB_ManualBUIDSwapList)(u8 Node, u8 Link, const u8 **List); /**---------------------------------------------------------------------------------------- * diff --git a/src/northbridge/amd/amdht/ht_wrapper.c b/src/northbridge/amd/amdht/ht_wrapper.c index 38733c9863..ed204a1617 100644 --- a/src/northbridge/amd/amdht/ht_wrapper.c +++ b/src/northbridge/amd/amdht/ht_wrapper.c @@ -117,9 +117,9 @@ static void AMD_CB_EventNotify (u8 evtClass, u16 event, const u8 *pEventData0) * @param[out] BOOL result = true to use a manual list * false to initialize the link automatically */ -static BOOL AMD_CB_ManualBUIDSwapList (u8 node, u8 link, u8 **List) +static BOOL AMD_CB_ManualBUIDSwapList (u8 node, u8 link, const u8 **List) { - static 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(BIOS_DEBUG, "AMD_CB_ManualBUIDSwapList()\n"); |