Zheng Bao ([email protected]) just uploaded a new patch set to gerrit, which 
you can find at http://review.coreboot.org/1606

-gerrit

commit 2124508be5823028f7a80721b2ac69c11c2773cf
Author: Zheng Bao <[email protected]>
Date:   Tue Oct 23 18:25:39 2012 +0800

    Trinity: Move the use of the pointer forward to its initialization
    
    Change-Id: I2f10909a626fb64c7f95663ddd79a3b899f73bc4
    Signed-off-by: Zheng Bao <[email protected]>
    Signed-off-by: Zheng Bao <[email protected]>
---
 src/mainboard/amd/parmer/BiosCallOuts.c   | 4 ++--
 src/mainboard/amd/thatcher/BiosCallOuts.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mainboard/amd/parmer/BiosCallOuts.c 
b/src/mainboard/amd/parmer/BiosCallOuts.c
index a5e274a..24268d7 100644
--- a/src/mainboard/amd/parmer/BiosCallOuts.c
+++ b/src/mainboard/amd/parmer/BiosCallOuts.c
@@ -297,11 +297,11 @@ AGESA_STATUS BiosDeallocateBuffer (UINT32 Func, UINT32 
Data, VOID *ConfigPtr)
        BIOS_HEAP_MANAGER  *BiosHeapBasePtr;
        AGESA_BUFFER_PARAMS *AllocParams;
 
+       AllocParams = (AGESA_BUFFER_PARAMS *) ConfigPtr;
+
        BiosHeapBaseAddr = (UINT8 *) GetHeapBase(&(AllocParams->StdHeader));
        BiosHeapBasePtr = (BIOS_HEAP_MANAGER *) BiosHeapBaseAddr;
 
-       AllocParams = (AGESA_BUFFER_PARAMS *) ConfigPtr;
-
        /* Find target node to deallocate in list of allocated nodes.
           Return AGESA_BOUNDS_CHK if the BufferHandle is not found
        */
diff --git a/src/mainboard/amd/thatcher/BiosCallOuts.c 
b/src/mainboard/amd/thatcher/BiosCallOuts.c
index 8660e05..d4da61a 100644
--- a/src/mainboard/amd/thatcher/BiosCallOuts.c
+++ b/src/mainboard/amd/thatcher/BiosCallOuts.c
@@ -297,11 +297,11 @@ AGESA_STATUS BiosDeallocateBuffer (UINT32 Func, UINT32 
Data, VOID *ConfigPtr)
        BIOS_HEAP_MANAGER  *BiosHeapBasePtr;
        AGESA_BUFFER_PARAMS *AllocParams;
 
+       AllocParams = (AGESA_BUFFER_PARAMS *) ConfigPtr;
+
        BiosHeapBaseAddr = (UINT8 *) GetHeapBase(&(AllocParams->StdHeader));
        BiosHeapBasePtr = (BIOS_HEAP_MANAGER *) BiosHeapBaseAddr;
 
-       AllocParams = (AGESA_BUFFER_PARAMS *) ConfigPtr;
-
        /* Find target node to deallocate in list of allocated nodes.
           Return AGESA_BOUNDS_CHK if the BufferHandle is not found
        */

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to