coreboot/src
Kyösti Mälkki 860cff96dc mb/*/mptable.c: Replace magic constants
Read I/O APIC ID and version from hardware registers.

With coccinelle below, and minor fixups.

@ r1 @
expression E1, E2, E3, E4;
typedef u8;
@@

-smp_write_ioapic(E1, E2, E3, E4);
+u8 ioapic_id = smp_write_ioapic_from_hw(E1, E4);

@ r2 @
expression E1, E2, E3, E4;
@@

-mptable_add_isa_interrupts(E1, E2, E3, E4)
+mptable_add_isa_interrupts(E1, E2, ioapic_id, E4)

@ r3 @
expression E1, E2, E3, E4, E5, E6, E7;
@@

-smp_write_pci_intsrc(E1, E2, E3, E4, E5, E6, E7)
+smp_write_pci_intsrc(E1, E2, E3, E4, E5, ioapic_id, E7)

@ r4 @
symbol mp_INT;
expression E1, E3, E4, E5, E6, E7;
@@

-smp_write_intsrc(E1, mp_INT, E3, E4, E5, E6, E7)
+smp_write_intsrc(E1, mp_INT, E3, E4, E5, ioapic_id, E7)

Change-Id: I20799f0c09cf0292661e1f3cb93373b2c68b7314
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55284
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2021-06-14 05:14:06 +00:00
..
acpi acpi: drop weak implementation of acpi_soc_get_bert_region 2021-06-08 18:25:20 +00:00
arch arch/x86/mptable: Add smp_write_ioapic_from_hw() 2021-06-12 15:49:35 +00:00
commonlib commonlib/lz4_wrapper.c: do not use bitfields 2021-06-11 07:41:41 +00:00
console tests/console: Add tests for log message routing behavior 2021-06-10 19:27:44 +00:00
cpu cpu/x86/lapic: Replace LOCAL_APIC_ADDR references 2021-06-11 07:11:43 +00:00
device device/pnp: Always provide pnp_unset_and_set_config 2021-06-10 05:38:13 +00:00
drivers drivers/intel/gma: Restructure IGD opregion init code 2021-06-11 07:38:13 +00:00
ec ec/google/chromeec: Separate SMBIOS SKU functions 2021-06-09 05:18:35 +00:00
include cpu/x86/lapic: Replace LOCAL_APIC_ADDR references 2021-06-11 07:11:43 +00:00
lib drivers/pc80/mc146818rtc: Check date and time for sanity 2021-05-30 20:28:14 +00:00
mainboard mb/*/mptable.c: Replace magic constants 2021-06-14 05:14:06 +00:00
northbridge nb/haswell/gma: Add Desktop GT1.5 (HD 4400) Device ID 2021-06-10 05:37:51 +00:00
security security/vboot: Add timestamps when loading verstage 2021-06-14 05:11:07 +00:00
soc soc/amd/cezanne: Supply SMBIOS/DMI Type 17 data 2021-06-13 09:55:39 +00:00
southbridge arch/x86/ioapic: Add get_ioapic_id() and get_ioapic_version() 2021-06-12 15:48:49 +00:00
superio src: Retype option API to use unsigned integers 2021-05-06 14:48:15 +00:00
vendorcode soc/amd/cezanne: Supply SMBIOS/DMI Type 17 data 2021-06-13 09:55:39 +00:00
Kconfig option: Allow mainboards to implement the API 2021-05-28 11:37:25 +00:00