coreboot/src
Arthur Heymans cc22607dbf Revert "src/arch/x86: Use core apic id to get cpu_index()"
This reverts commit 095c931cf1.

Previously cpu_info() was implemented with a struct on top of an
aligned stack. As FSP changed the stack value cpu_info() could not be
used in FSP context (which PPI is). Now cpu_info() uses GDT segments,
which FSP does not touch so it can be used.

This also exports cpu_infos from cpu.c as it's a convenient way to get
the struct device * for a certain index.

TESTED on aldrvp: FSP-S works and is able to run code on APs.

Change-Id: I3a40156ba275b572d7d1913d8c17c24b4c8f6d78
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69509
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-11-29 19:58:13 +00:00
..
acpi acpi: Create a common method to add DmaProperty 2022-11-29 19:48:27 +00:00
arch Revert "src/arch/x86: Use core apic id to get cpu_index()" 2022-11-29 19:58:13 +00:00
commonlib commonlib/fsp_relocate.c: Fix cbfstool build on 32-bit host 2022-11-25 13:53:31 +00:00
console console/post.c: Sort includes 2022-10-27 15:46:39 +00:00
cpu aopen/dxplplusu: Support SMM_ASEG and SMM_TSEG 2022-11-28 10:05:28 +00:00
device device/mdio: Provide helper functions for read and write 2022-11-24 05:58:28 +00:00
drivers Revert "src/arch/x86: Use core apic id to get cpu_index()" 2022-11-29 19:58:13 +00:00
ec ec: Add SPDX license headers to Makefiles 2022-11-22 12:43:11 +00:00
include acpi: Create a common method to add DmaProperty 2022-11-29 19:48:27 +00:00
lib lib/malloc.c: Fix log messages 2022-11-18 16:02:28 +00:00
mainboard mb/google/brya: Add ACPI DmaProperty for ethernet devices 2022-11-29 19:51:26 +00:00
northbridge aopen/dxplplusu: Support SMM_ASEG and SMM_TSEG 2022-11-28 10:05:28 +00:00
sbom
security security: Remove unnecessary space after casts 2022-11-22 12:55:26 +00:00
soc Revert "src/arch/x86: Use core apic id to get cpu_index()" 2022-11-29 19:58:13 +00:00
southbridge sb,soc/intel: Drop spurious SMI entry message 2022-11-28 10:26:27 +00:00
superio src/superio: Remove unnecessary space after casts 2022-11-21 15:03:50 +00:00
vendorcode vc/intel/edk2/edk2-stable202111: Safe guard enum macro in SmBios.h 2022-11-26 23:45:26 +00:00
Kconfig build: List all Kconfigs in CBFS config file, compress it 2022-11-18 17:19:44 +00:00