coreboot/src/arch/x86
Kyösti Mälkki 3af6aa10f7 arch/x86: Optimise PCI IO config accessor
By design only 'reg' parameter can have the two least-
significant bits set. As 'reg' is often a constant,
'0xCFC + (reg & 3)' resolves to an immediate value
already at buildtime, unlike (addr & 3) which depends
of a constant (but non-immediate) value of 'dev' in
ramstage.

Change-Id: I6e729fe800c92b1ce4994ad2b4203072fa75a958
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31754
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-03-14 11:36:09 +00:00
..
acpi mb: Set coreboot as DSDT's manufacturer model ID 2018-11-23 11:00:40 +00:00
include arch/x86: Optimise PCI IO config accessor 2019-03-14 11:36:09 +00:00
acpi.c x86/acpi: Only sort CPU IDs if more than one available 2019-03-14 07:47:54 +00:00
acpi_bert_storage.c arch/x86/acpi_bert_storage.c: Fix coverity error CID 1395706 2018-09-15 12:43:26 +00:00
acpi_device.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
acpi_pld.c acpi_pld: Make it easier to define the ACPI USB device groups 2018-12-04 22:50:15 +00:00
acpi_s3.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
acpigen.c arch/x86/acpi: Remove obsolete acpi_gen_regaddr resv field 2019-03-04 13:16:29 +00:00
acpigen_dsm.c arch/x86/acpigen: Fix acpigen for If (Lequal (...)) 2016-11-16 01:08:06 +01:00
assembly_entry.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
boot.c arch/x86: Drop spurious arch/stages.h includes 2018-12-28 06:47:31 +00:00
bootblock.ld coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
bootblock_crt0.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
bootblock_normal.c Port cmos.default handling to C environment bootblock 2017-07-26 19:30:01 +00:00
bootblock_romcc.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
bootblock_simple.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
c_start.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
car.ld coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
cbfs_and_run.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
cbmem.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
cf9_reset.c arch/x86: Implement common CF9 reset 2018-10-22 08:35:08 +00:00
cpu.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
cpu_common.c cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
ebda.c arch/io.h: Drop unnecessary include 2019-03-04 15:08:03 +00:00
exception.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
exit_car.S coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
failover.ld arch/x86: Drop Kconfig AP_SIPI_VECTOR 2019-01-13 08:37:01 +00:00
gdt.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
gdt_init.S arch/x86: Prepare GDT for x86_64 2019-03-06 20:00:55 +00:00
id.ld
id.S arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
idt.S arch/x86: remove nop padding from exception vectors 2018-04-26 15:18:57 +00:00
ioapic.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
Kconfig arch/x86/Kconfig: Fix spelling of *successful* 2019-01-08 15:50:50 +00:00
Makefile.inc src/device/Kconfig: Include the discrete VGA OpROM at config UI 2019-03-07 17:23:41 +00:00
memcpy.c
memlayout.ld coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
memmove.c arch/x86: Fix space issues detected by checkpatch 2017-03-17 03:17:39 +01:00
memset.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
mmap_boot.c arch/x86: drop special case cbfs locator 2018-11-23 20:50:43 +00:00
mpspec.c cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
pci_ops.c device/pci_ops: Drop parameter from pci_bus_default_ops() 2019-03-03 13:45:27 +00:00
pci_ops_conf1.c device/pci_ops: Rename 'where' to 'reg' 2019-03-13 04:42:05 +00:00
pirq_routing.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
postcar.c arch/x86/postcar: Add separate timestamp for postcar stage 2019-03-07 17:21:23 +00:00
postcar_loader.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
prologue.inc
rdrand.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
smbios.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
stages.c
tables.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
thread.c src/arch: Fix typo 2018-08-09 15:56:02 +00:00
thread_switch.S
timestamp.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
timestamp.inc arch/x86: Unify bootblock MMX register usage 2019-01-08 15:31:19 +00:00
verstage.c vboot: Remove CHIPSET_PROVIDES_VERSTAGE_MAIN_SYMBOL Kconfig option 2017-03-28 22:14:03 +02:00
wakeup.S arch/x86/wakeup.S: Use tabs instead of white spaces 2018-12-24 08:17:00 +00:00
walkcbfs.S arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00