fix a case where the fam10 code would overwrite parts of a struct.
authorStefan Reinauer <stepan@coresystems.de>
Wed, 14 Apr 2010 17:18:34 +0000 (17:18 +0000)
committerStefan Reinauer <stepan@openbios.org>
Wed, 14 Apr 2010 17:18:34 +0000 (17:18 +0000)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5434 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/northbridge/amd/amdmct/mct/mctardk3.c
src/northbridge/amd/amdmct/mct/mctardk4.c

index afdb2b2575eb9b89db720a2b0fb2f3b341fa9238..7d0ca81fb093dbea336f93f9060dd677e92d23e1 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 
  */
 
 
-static void Get_ChannelPS_Cfg0_D( u8 MAAdimms, u8 Speed, u8 MAAload,
+static void Get_ChannelPS_Cfg0_D(u8 MAAdimms, u8 Speed, u8 MAAload,
                                u8 DATAAload, u32 *AddrTmgCTL, u32 *ODC_CTL);
 
 
                                u8 DATAAload, u32 *AddrTmgCTL, u32 *ODC_CTL);
 
 
index a3592d470e82acd2521ab377e2bc9761cac74748..c18e8e58ba8f9b8812d2389e20c9b7210d7b6e29 100644 (file)
@@ -18,9 +18,9 @@
  */
 
 
  */
 
 
-static void Get_ChannelPS_Cfg0_D( u8 MAAdimms, u8 Speed, u8 MAAload,
+static void Get_ChannelPS_Cfg0_D(u8 MAAdimms, u8 Speed, u8 MAAload,
                                u8 DATAAload, u32 *AddrTmgCTL, u32 *ODC_CTL,
                                u8 DATAAload, u32 *AddrTmgCTL, u32 *ODC_CTL,
-                               u32 *CMDmode);
+                               u8 *CMDmode);
 
 
 void mctGet_PS_Cfg_D(struct MCTStatStruc *pMCTstat,
 
 
 void mctGet_PS_Cfg_D(struct MCTStatStruc *pMCTstat,
@@ -102,7 +102,7 @@ static const u8 Table_ATC_ODC_D_Ax[] = {
 
 static void Get_ChannelPS_Cfg0_D( u8 MAAdimms, u8 Speed, u8 MAAload,
                                u8 DATAAload, u32 *AddrTmgCTL, u32 *ODC_CTL,
 
 static void Get_ChannelPS_Cfg0_D( u8 MAAdimms, u8 Speed, u8 MAAload,
                                u8 DATAAload, u32 *AddrTmgCTL, u32 *ODC_CTL,
-                               u32 *CMDmode)
+                               u8 *CMDmode)
 {
        u8 *p;
 
 {
        u8 *p;