AGESA: Move EmptyHeap() call

Specification says to do CAR teardown as part of AmdInitPost().
Move initializing the final AGESA heap storage to AmdInitEnv()
so the buffer is not invalidated without writeback.

Change-Id: I3a5d497d0e25ec291f722e9f089bc8928238c3f9
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/19024
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Kyösti Mälkki 2017-03-25 22:45:18 +02:00
parent 1498efe2d0
commit 4a6e00fd36
1 changed files with 3 additions and 3 deletions

View File

@ -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;