coreboot-kgpe-d16/src/mainboard/intel/kunimitsu
Jacob Garber 8216b46d7b mb/{asrock,intel,purism}: Copy channel arrays separately
DqByteMapCh0 and DqByteMapCh1 are declared adjacently in the
FSP_M_CONFIG struct, so it is tempting to begin memcpy at the address of
the first array and overwrite both of them at once. However, FSP_M_CONFIG
is not declared with the packed attribute, so this is not guaranteed to
work and is undefined behaviour to boot. It is cleaner and less tricky
to copy them independently. The same is true for DqsMapCpu2DramCh0 and
DqsMapCpu2DramCh1, so we change those as well.

Change-Id: Ic6bb2bd5773af24329575926dbc70e0211f29051
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 136538{8,9}, 140134{1,4}
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33135
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-08-20 15:18:10 +00:00
..
acpi
spd mb/{asrock,intel,purism}: Copy channel arrays separately 2019-08-20 15:18:10 +00:00
acpi_tables.c
board_info.txt
bootblock_mainboard.c
chromeos.c mb/*/chromeos.c: Remove some ENV_RAMSTAGE and __SIMPLE_DEVICE__ 2019-07-25 16:03:37 +00:00
chromeos.fmd mainboard: Enable PRESERVE flag in all vboot/chromeos FMD files 2019-03-05 20:52:06 +00:00
cmos.layout
devicetree.cb {mb,soc/intel/skylake}: remove unused InternalGfx 2019-04-06 13:12:04 +00:00
dsdt.asl cpu/intel/common: Use a common acpi/cpu.asl file 2018-11-30 22:02:35 +00:00
ec.c
ec.h
gpio.h
Kconfig soc/mainboard: Update mainboard UART Kconfig 2019-01-11 18:59:21 +00:00
Kconfig.name
mainboard.c src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
Makefile.inc arch/x86: Avoid HAVE_SMI_HANDLER conditional with smm-class 2019-07-09 12:43:35 +00:00
ramstage.c
romstage.c mb/{asrock,intel,purism}: Copy channel arrays separately 2019-08-20 15:18:10 +00:00
romstage_fsp20.c mb/{asrock,intel,purism}: Copy channel arrays separately 2019-08-20 15:18:10 +00:00
smihandler.c mainboard/google: Fix indirect includes 2019-08-15 04:41:35 +00:00