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 cpu/amd/agesa: Remove leftover code 2022-11-07 13:58:48 +00:00
bootblock.c treewide: Remove unused <cpu/amd/msr.h> 2023-01-09 21:17:08 +00:00
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 drivers/amd/agesa: Fix some white spaces issues 2022-07-17 21:55:47 +00:00
exit_car.S
heapmanager.c src/drivers: Remove unnecessary space after casts 2022-11-22 13:40:56 +00:00
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 drivers/amd/agesa: Fix some white spaces issues 2022-07-17 21:55:47 +00:00
romstage.c cbmem_top_chipset: Change the return value to uintptr_t 2022-11-18 16:00:45 +00:00
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 sb/amd: Remove dropped platforms 2022-11-07 13:59:17 +00:00