mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
1498efe2d0
commit
4a6e00fd36
1 changed files with 3 additions and 3 deletions
|
@ -111,9 +111,6 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
|
||||||
|
|
||||||
AmdReleaseStruct(&AmdParamStruct);
|
AmdReleaseStruct(&AmdParamStruct);
|
||||||
|
|
||||||
/* Initialize heap space */
|
|
||||||
EmptyHeap();
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,6 +150,9 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_ENV_PARAMS *EnvParam;
|
AMD_ENV_PARAMS *EnvParam;
|
||||||
|
|
||||||
|
/* Initialize heap space */
|
||||||
|
EmptyHeap();
|
||||||
|
|
||||||
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
|
|
Loading…
Add table
Reference in a new issue