coreboot/src/cpu
Felix Held 447f5777aa cpu/x86/mtrr: use lapicid instead of cpu_index calls
The cpu_index function can't be used before mpinit, so use lapicid calls
instead. This fixes the regression introduced by commit 4c3749884d
("cpu/x86/mtrr: Print cpu index number when set up MTRRs for BSP/APs")
and also reverts also commit b3261661c7 ("cpu/x86/mtrr/mtrr: fix
printk format strings"), since lapicid returns an unsigned int while
cpu_index returns an unsigned long.

TEST=Mandolin boots again and doesn't fail when it first tries to print
the MTRR configuration

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I0d226704051ab171891775a618ce7897b74fde16
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70797
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
2022-12-15 03:10:08 +00:00
..
amd cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
armltd
intel cpu/intel/206ax: Fix generating C state entries 2022-12-14 13:31:09 +00:00
power9 src/cpu/power9: add file structure for power9, implement SCOM access 2022-02-11 13:53:29 +00:00
qemu-power8
qemu-x86 mb/qemu/x86: Remove option for LEGACY_SMP_INIT 2022-11-07 13:59:24 +00:00
x86 cpu/x86/mtrr: use lapicid instead of cpu_index calls 2022-12-15 03:10:08 +00:00
Kconfig src/cpu: Remove unused symbols 2021-02-18 10:11:24 +00:00
Makefile.inc cpu/Makefile.inc: Fix rebuilding a new target 2022-06-17 14:26:55 +00:00