coreboot-kgpe-d16/src/soc/amd/stoneyridge
Richard Spiegel ef73cb88dc soc/amd/stoneyridge/southbridge.c: Fix get_index_bit limit check
Limit is the maximum number of bits to be tested, however it's being checked
against the number of bytes of uint32_t. when it should be number of bits.
Create a macro to provide the number of bits, and use it instead of sizeof.

BUG=b:75996437
TEST=Add debug messages to see code passing beyond the check, build and
boot grunt, check that it passed the limit check, remove debug code.

Change-Id: Id1dfda26d789183b346b20c37fec923d996b80db
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/27162
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-06-26 15:20:29 +00:00
..
acpi soc/amd/stoneyridge/acpi: Create a GPIO library 2018-06-12 21:15:16 +00:00
bootblock amd/stoneyridge: Add early MTRR setup for new callouts 2018-06-13 21:21:19 +00:00
include soc/amd/stoneyridge/southbridge.c: Fix get_index_bit limit check 2018-06-26 15:20:29 +00:00
acpi.c soc/amd/stoneyridge/acpi.c: Create GPIO acpigen procedures 2018-06-13 14:24:42 +00:00
BiosCallOuts.c soc/amd/stoneyridge: Remove USB30PortInit setting 2018-05-04 01:04:15 +00:00
chip.c soc/amd/stoneyridge: Add ACPI device name lookup 2018-06-01 02:52:19 +00:00
chip.h soc/amd/stoneyridge: Add I2C devicetree support. 2018-01-25 22:35:38 +00:00
cpu.c soc/amd/stoneyridge/: Get rid of device_t 2018-05-23 09:56:59 +00:00
enable_usbdebug.c
finalize.c cpu/x86: Add support to run function with argument over APs 2018-05-14 08:39:42 +00:00
gpio.c soc/amd/stoneyridge/acpi.c: Create GPIO acpigen procedures 2018-06-13 14:24:42 +00:00
hda.c soc/amd/stoneyridge: remove superfluous NULL field initialization 2017-11-04 02:58:41 +00:00
i2c.c soc/amd/stoneyridge: Add API to initialize non-early_init i2c buses 2018-02-06 15:10:20 +00:00
imc.c soc/amd/common: Move Agesa related headers 2017-12-12 16:24:38 +00:00
Kconfig stoneyridge: Increase SMM stack size to 2K 2018-06-14 09:29:04 +00:00
lpc.c soc/amd/stoneyridge/: Get rid of device_t 2018-05-23 09:56:59 +00:00
Makefile.inc stoneyridge GPIO: Create and use PAD_INT for interrupt pins 2018-05-27 01:03:28 +00:00
monotonic_timer.c soc/amd/stoneyridge: remove dependence on TSC 2018-01-25 23:30:14 +00:00
nb_util.c pci: Move inline PCI functions to pci_ops.h 2018-04-20 13:03:54 +00:00
northbridge.c soc/amd/stoneyridge/: Get rid of device_t 2018-05-23 09:56:59 +00:00
pmutil.c src/soc/stoneyridge: Add a check for CMOS failure 2018-04-02 21:03:34 +00:00
ramtop.c amd/stoneyridge: Put stage cache into TSEG 2018-02-07 16:24:55 +00:00
reset.c pci: Move inline PCI functions to pci_ops.h 2018-04-20 13:03:54 +00:00
romstage.c stoneyridge: Move agesa out of bootblock 2018-06-12 18:04:52 +00:00
sata.c soc/amd/stoneyridge: remove superfluous NULL field initialization 2017-11-04 02:58:41 +00:00
sb_util.c soc/amd/stoneyridge: Add UMA save function 2018-02-21 16:08:45 +00:00
sm.c soc/amd/stoneyridge/: Get rid of device_t 2018-05-23 09:56:59 +00:00
smbus.c soc/amd/stoneyridge: Simplify and fix SMBUS code 2017-11-10 19:11:12 +00:00
smbus_spd.c soc/amd/common: Move Agesa related headers 2017-12-12 16:24:38 +00:00
smi.c src/soc: Add and update license headers 2018-05-29 22:36:10 +00:00
smi_util.c src/soc: Add and update license headers 2018-05-29 22:36:10 +00:00
smihandler.c soc/amd/stoneyridge: Fix smi_write32 arg order in disable_all_smi_status 2018-04-26 06:58:27 +00:00
southbridge.c soc/amd/stoneyridge/southbridge.c: Fix get_index_bit limit check 2018-06-26 15:20:29 +00:00
spi.c drivers/spi: reduce confusion in the API 2018-04-23 20:58:58 +00:00
tsc_freq.c pci: Move inline PCI functions to pci_ops.h 2018-04-20 13:03:54 +00:00
uart.c soc/amd/stoneyridge: Check UART index 2017-10-16 00:12:48 +00:00
usb.c soc/amd/stoneyridge: Support ACPI USB code generation 2018-05-18 12:23:17 +00:00