coreboot/src/cpu/x86
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
..
64bit cpu/x86/64bit: Fix building with -jx 2022-10-12 12:04:00 +00:00
lapic cpu/x86: Drop LEGACY_SMP_INIT 2022-11-07 13:59:35 +00:00
mtrr cpu/x86/mtrr: use lapicid instead of cpu_index calls 2022-12-15 03:10:08 +00:00
name cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
pae cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
smm mb,sb,soc/intel: Drop useless IO trap handlers 2022-12-07 11:23:15 +00:00
tsc cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
backup_default_smm.c cpu/x86: Clean up includes 2022-10-26 16:37:34 +00:00
early_reset.S
entry16.S Asm code: Use NO_EARLY_BOOTBLOCK_POSTCODES to remove Asm port80s 2021-06-25 15:51:20 +00:00
entry32.S arch/x86,cpu/x86: Disable the %gs and %fs segments 2021-09-29 14:12:58 +00:00
Kconfig cpu/x86/Kconfig: Drop unused Kconfig symbol 2022-11-17 13:26:17 +00:00
Kconfig.debug_cpu cpu/x86/Kconfig.debug_cpu: Drop unused symbol 2022-11-10 00:20:38 +00:00
Makefile.inc cpu/x86/64bit: Add a separate Makefile.inc 2022-04-25 13:56:54 +00:00
mp_init.c cpu/x86/mp_init.c: Improve AP entry point 2022-12-14 13:51:40 +00:00
reset16.S
sipi_vector.S cpu/x86: Set thread local storage in C code 2022-11-12 14:23:51 +00:00
smi_trigger.c cpu/x86: Clean up includes 2022-10-26 16:37:34 +00:00
sse_enable.inc