coreboot/src/drivers/amd/agesa
Felix Held 1c25c63c78 include/cpu/amd/mtrr: rename TOP_MEM(2) and remove workaround
Both AGESA.h and cpu/amd/mtrr.h defined TOP_MEM and TOP_MEM2, but since
it was defined as unsigned long in AGESA.h, a workaround was needed in
cpu/amd/mtrr.h to not have the build fail due to a non-identical
redefinition of TOP_MEM and TOP_MEM2. Just removing the workaround
without reaming the defines isn't trivially possible, since the
stoneyridge romstage.c still ends up including both definitions which
can't be easily worked around. Now all non-vendorcode coreboot code uses
TOP_MEM_MSR and TOP_MEM2_MSR while the vendorcode part uses TOP_MEM and
TOP_MEM2 to avoid this.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ibad72dac17bd0b05734709d42c6802b7c8a87455
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74619
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
2024-08-15 21:42:32 +00:00
..
acpi_tables.c
bootblock.c
cache_as_ram.S x86: Add .data section support for pre-memory stages 2023-09-14 21:02:07 +00:00
def_callouts.c drivers: Remove space between function name and '(' 2023-09-11 15:51:04 +00:00
eventlog.c
exit_car.S
heapmanager.c
Kconfig
Makefile.mk driver/acpi to /driver/gfx: Rename Makefiles from .inc to .mk 2024-01-24 10:03:39 +00:00
mtrr_fixme.c cbmem_top: Change the return value to uintptr_t 2024-07-10 12:55:46 +00:00
oem_s3.c
romstage.c
s3_mtrr.c include/cpu/amd/mtrr: rename TOP_MEM(2) and remove workaround 2024-08-15 21:42:32 +00:00
state_machine.c