soc/amd/common: Replace missing AmdReleaseStruct() calls
commitdd2c7b12bba6f7949a9b557f3d1d3060630bbd86
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Thu, 14 Dec 2017 05:36:52 +0000 (13 22:36 -0700)
committerMartin Roth <martinroth@google.com>
Mon, 12 Feb 2018 17:00:30 +0000 (12 17:00 +0000)
tree57289495c18e7f2470e66bc66d424a19735fcf88
parent52f5cdce17f6ef4e37984e098d186cefe3950eb4
soc/amd/common: Replace missing AmdReleaseStruct() calls

The AGESA spec states that "Failure to release a structure can cause
undesired outcomes."

Uncomment the one in AmdInitLate().  The function only dealocates the
structure used for the AGESA entry point, and not the internal data
used by coreboot.

Release the structure in AmdInitEnv().  This appears to have been an
omission years ago when duplicating agesawrapper.c for every mainboard
was still common.

BUG=b:70671742
TEST=Build and boot Kahlee, inspect console log

Change-Id: Ib1ff94ec2acdc845c5e4b4ed7088061cfc0c55f3
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/22888
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/amd/common/block/pi/agesawrapper.c