coreboot/src/cpu/x86
Nico Huber 41feb32559 region: Turn region_end() into an inclusive region_last()
The current region_end() implementation is susceptible to overflow
if the region is at the end of the addressable space. A common case
with the memory-mapped flash of x86 directly below the 32-bit limit.

Note: This patch also changes console output to inclusive limits.
IMO, to the better.

Change-Id: Ic4bd6eced638745b7e845504da74542e4220554a
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79946
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2024-08-23 01:08:16 +00:00
..
64bit cpu/x86: Rename paging structure variables for clarity 2024-06-18 08:25:24 +00:00
cache cpu: Rename Makefiles from .inc to .mk 2024-01-24 08:35:01 +00:00
lapic cpu/x86/lapic: Always have LAPIC enabled 2024-08-11 17:06:41 +00:00
mtrr cpu/x86/mtrr: Error out caching limitation during NEM 2024-03-19 13:02:04 +00:00
name cpu: Rename Makefiles from .inc to .mk 2024-01-24 08:35:01 +00:00
pae cpu/x86/pae/pgtbl.c: extract reusable code from memset_pae() 2024-05-29 13:04:30 +00:00
smm region: Turn region_end() into an inclusive region_last() 2024-08-23 01:08:16 +00:00
tsc cpu: Rename Makefiles from .inc to .mk 2024-01-24 08:35:01 +00:00
backup_default_smm.c cpu/x86: Clean up includes 2022-10-26 16:37:34 +00:00
copy_data_section.inc x86: Add .data section support for pre-memory stages 2023-09-14 21:02:07 +00:00
early_reset.S
entry16.S commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
entry32.S commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
Kconfig cpu/x86/Kconfig: Add SMM Kconfig help 2024-06-09 12:01:00 +00:00
Kconfig.debug_cpu arch to cpu: Add SPDX license headers to Kconfig files 2024-02-18 01:58:52 +00:00
Makefile.mk lib: Remove heap from rmodules 2024-02-26 10:10:07 +00:00
mp_init.c tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
reset16.S
sipi_vector.S cpu/x86/(sipi|smm): Pass on CR3 from ramstage 2024-02-28 12:12:59 +00:00
smi_trigger.c cpu/x86/smi_trigger: use call_smm 2024-01-11 22:35:32 +00:00
smm_start32_offset.h.template cpu/x86/mp_init.c: Generate a C header to get start32 offset 2023-04-06 15:19:00 +00:00
topology.c cpu/x86/topology: Add node ID parser 2024-04-03 07:35:15 +00:00