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> |
||
|---|---|---|
| .. | ||
| acpi | ||
| tpm | ||
| adesto.c | ||
| amic.c | ||
| atmel.c | ||
| bitbang.c | ||
| boot_device_rw_nommap.c | ||
| cbfs_spi.c | ||
| eon.c | ||
| flashconsole.c | ||
| gigadevice.c | ||
| issi.c | ||
| Kconfig | ||
| macronix.c | ||
| Makefile.mk | ||
| spansion.c | ||
| spi-generic.c | ||
| spi_flash.c | ||
| spi_flash_internal.h | ||
| spi_sdcard.c | ||
| spi_winbond.h | ||
| spiconsole.c | ||
| sst.c | ||
| stmicro.c | ||
| winbond.c | ||