binaryPI: Drop CAR teardown without POSTCAR_STAGE
commit56397364c9178cae527520a5fffb9eab2f6cc35b
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Thu, 7 Sep 2017 19:13:10 +0000 (7 22:13 +0300)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Wed, 27 Nov 2019 10:39:20 +0000 (27 10:39 +0000)
tree6eef7e601f8e7c07c0e8f6f59caa776ade7af06f
parent46f04cbb49fbab5854d395edefea5b5f81df572e
binaryPI: Drop CAR teardown without POSTCAR_STAGE

The remaining (active) binaryPI boards moved away from
BINARYPI_LEGACY_WRAPPER and have POSTCAR_STAGE now.

As the cache_as_ram.S is also used with AGESA, this slightly
reduces the codesize there for romstage and postcar as well.

This commit is actually a revert for the vendorcode parts,
AMD originally shipped the codes using 'invd' for the CAR
teardown, but these were changed for coreboot due the
convoluted teardown that used to happen with non-empty stack.

Change-Id: I693c104c3aab3be537c00695cbd764a48bd603b0
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/18526
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/drivers/amd/agesa/Makefile.inc
src/drivers/amd/agesa/cache_as_ram.S
src/drivers/amd/agesa/exit_car.S [new file with mode: 0644]
src/vendorcode/amd/pi/00630F01/binaryPI/gcccar.inc
src/vendorcode/amd/pi/00660F01/binaryPI/gcccar.inc
src/vendorcode/amd/pi/00730F01/binaryPI/gcccar.inc