summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/northbridge/amd/agesa/agesawrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/northbridge/amd/agesa/agesawrapper.c b/src/northbridge/amd/agesa/agesawrapper.c
index 0a6f2a3370..d21c9c371a 100644
--- a/src/northbridge/amd/agesa/agesawrapper.c
+++ b/src/northbridge/amd/agesa/agesawrapper.c
@@ -111,9 +111,6 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
AmdReleaseStruct(&AmdParamStruct);
- /* Initialize heap space */
- EmptyHeap();
-
return status;
}
@@ -153,6 +150,9 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
AMD_INTERFACE_PARAMS AmdParamStruct;
AMD_ENV_PARAMS *EnvParam;
+ /* Initialize heap space */
+ EmptyHeap();
+
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;