summaryrefslogtreecommitdiffstats
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-16 13:20:18 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-05-19 11:07:35 +0000
commitcd259cb08a99812082f8bb2f7ecd23c031bb4e2d (patch)
treed5ca9afd5aa08ee5389eab1541495406dd4d023d /src/northbridge/amd
parente46a9775418501ef77a646adf312975a936f0e51 (diff)
downloadcoreboot-cd259cb08a99812082f8bb2f7ecd23c031bb4e2d.tar.gz
coreboot-cd259cb08a99812082f8bb2f7ecd23c031bb4e2d.tar.bz2
coreboot-cd259cb08a99812082f8bb2f7ecd23c031bb4e2d.zip
arch/x86/car.ld: Add a Kconfig param to flag AGESA brokenness
AGESA has a lot of code in the .data section (initialized data). However there is no such section in CAR stages as the code runs in XIP mode and CAR is too small to contain the data section. When the linker can not match code to a section it will just append it, which is why AGESA worked at all. Follow-up patches will attempt to fix AGESA and set Kconfig parameter to 'n'. After all AGESA sources have been fixed, this can be removed. Change-Id: I311ee17e3c0bd283692194fcee63af4449583d74 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64387 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/agesa/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/northbridge/amd/agesa/Kconfig b/src/northbridge/amd/agesa/Kconfig
index 6f6e3d63a96f..3959284921ea 100644
--- a/src/northbridge/amd/agesa/Kconfig
+++ b/src/northbridge/amd/agesa/Kconfig
@@ -27,6 +27,13 @@ config S3_VGA_ROM_RUN
source "src/northbridge/amd/agesa/*/Kconfig"
+config AGESA_BROKEN_DATA_SECTION
+ bool
+ default y
+ help
+ Select this on AGESA platforms that incorrectly use the .data
+ section.
+
# TODO: Reservation for heap seems excessive
config HEAP_SIZE
hex