coreboot/src/commonlib
Brandon Breitenstein 6ffaac1d11 UPSTREAM: commonlib: update fsp_relocate to make it compatible with UEFI 2.6
UEFI 2.6 spec casts the return of FFS_FILE2_SIZE to a UINT32
which cannot be read using read_le32(&returnval). Add in a
cast in order to safeguard for any non x86 architecture that may
use this relocate. The proper change will be to get the UEFI
header files changed to not cast this return value.

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Brandon Breitenstein <brandon.breitenstein@intel.com>
Reviewed-on: https://review.coreboot.org/16309
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>

Change-Id: Ie1b50d99576ac42a0413204bbd599bab9f01828e
Reviewed-on: https://chromium-review.googlesource.com/381005
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-09-06 13:26:27 -07:00
..
include/commonlib UPSTREAM: cbfs: Add "struct" file type and associated helpers 2016-09-01 22:56:18 -07:00
cbfs.c UPSTREAM: commonlib: cbfs: Add CBFS attribute support 2016-09-01 19:52:43 -07:00
fsp_relocate.c UPSTREAM: commonlib: update fsp_relocate to make it compatible with UEFI 2.6 2016-09-06 13:26:27 -07:00
lz4.c.inc cbfs: Add LZ4 in-place decompression support for pre-RAM stages 2016-02-22 21:38:37 +01:00
lz4_wrapper.c UPSTREAM: src/commonlib/lz4_wrapper: Correct inline asm for unaligned 64-bit copy 2016-06-27 17:12:45 -07:00
Makefile.inc UPSTREAM: drivers/intel/fsp2_0: load and relocate FSPS in cbmem 2016-07-19 16:31:34 -07:00
mem_pool.c commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
region.c UPSTREAM: commonlib/region: allow empty mmap()/munmap() in region_device_ops 2016-08-16 03:08:37 -07:00