Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37167 )
Change subject: src/arch/x86/car.ld: add AP entry address in CAR space ......................................................................
src/arch/x86/car.ld: add AP entry address in CAR space
This is a placeholder for AP entry address for AMD platforms that support C environment bootblock. This shortcut address allows APs to jump to the AGESA entries directly after CAR setup and avoid looking for a scratch register for each family to store the AP entry address.
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I177cd6f84c3f36776ec7bc8eeacb5b2a1d9142d2 --- M src/arch/x86/car.ld M src/arch/x86/include/arch/symbols.h 2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/67/37167/1
diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld index 3680250..de760f8 100644 --- a/src/arch/x86/car.ld +++ b/src/arch/x86/car.ld @@ -68,6 +68,11 @@ . += 80; _ecar_ehci_dbg_info = .;
+ . = ALIGN(ARCH_POINTER_ALIGN_SIZE); + _car_amd_ap_entry = .; + . += 4; + _ecar_amd_ap_entry = .; + /* _bss and _ebss provide symbols to per-stage * variables that are not shared like the timestamp and the pre-ram * cbmem console. This is useful for clearing this area on a per-stage diff --git a/src/arch/x86/include/arch/symbols.h b/src/arch/x86/include/arch/symbols.h index efe10fe..9ab0dba 100644 --- a/src/arch/x86/include/arch/symbols.h +++ b/src/arch/x86/include/arch/symbols.h @@ -38,4 +38,6 @@ #define _car_ehci_dbg_info_size \ (_ecar_ehci_dbg_info - _car_ehci_dbg_info)
+extern unsigned long _car_amd_ap_entry; + #endif