coreboot-kgpe-d16/util
Stefan Reinauer 8c5947709a cbmem utility: compatibility with older coreboot versions
Commit b8ad224 changed the memory address in lb_cbmem_ref coreboot
table entries from a pointer to a uint64_t. This change was introduced
to make the cbmem utility work on both 32bit and 64bit userland.
Unfortunately, this broke the cbmem utility running on older versions
of coreboot because they were still providing a 32bit only field for
the address while the cbmem utility would now take the following 4
bytes as upper 32bits of a pointer that can obviously not be
mmapped. This change checks if the size of the lb_cbmem_ref structure
provided by coreboot is smaller than expected, and if so, ignore the
upper 32bit of the address read.

Signed-off-by: Stefan Reinauer <reinauer@google.com>

Change-Id: If4c8e9b72b2a38c961c11d7071b728e61e5f1d18
Commit-Queue: Stefan Reinauer <reinauer@google.com>
Tested-by: Stefan Reinauer <reinauer@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/4139
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-11-25 23:02:07 +01:00
..
abuild buildgcc: Downgrade to gcc 4.7.3, handle armv7-a 2013-09-20 20:42:14 +02:00
acpi GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
amdtools
board_status board_status.sh: trivial cosmetic changes toward the end 2013-11-17 10:32:22 +01:00
cbfstool cbfstool: add a constant for the aarch64 2013-11-18 16:58:58 +01:00
cbmem cbmem utility: compatibility with older coreboot versions 2013-11-25 23:02:07 +01:00
crossgcc buildgcc: Downgrade to gcc 4.7.3, handle armv7-a 2013-09-20 20:42:14 +02:00
dtd_parser GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
dumpmmcr
ectool GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
genprof Rename devices -> device 2012-11-30 23:59:58 +01:00
getpir GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
gitconfig gitconfig: Match the Change-Id line more exactly 2012-08-27 15:41:33 +02:00
i915tool Fix whitespace leaked into tree 2013-09-17 21:04:35 +02:00
ifdfake ifdfake - Create an IFD with just a section layout 2013-06-24 17:56:42 +02:00
ifdtool ifdtool: Dump more registers from FD 2012-11-12 06:56:03 +01:00
inteltool inteltool: Print raw CPUID and make hexadecimal values unambiguous 2013-07-23 12:06:24 +02:00
k8resdump GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
kconfig kconfig: fix choice dependency check 2013-05-26 11:50:11 +02:00
lbtdump
lint util/lint/lint-stable-003-whitespace: Ignore temporary files ending with a tilde 2013-10-22 04:17:30 +02:00
mkelfImage GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
mptable
msrtool msrtool: Fix verbose ignored by cpuid(). 2013-07-08 19:39:00 +02:00
nvramtool nvramtool: write size field more obviously 2013-11-19 00:59:55 +01:00
optionlist GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
resetcf
romcc romcc: Fix off-by-one 2013-11-16 09:49:35 +01:00
runfw Add a clean target to the run firmware (runfw) Makefile 2013-01-30 21:22:04 +01:00
sconfig AMD: Drop empty root_complex 2013-06-24 17:22:44 +02:00
showdevicetree Show the device tree. 2013-03-16 04:30:16 +01:00
spkmodem_recv Add spkmodem receiver 2013-06-12 05:18:24 +02:00
superiotool superiotool: Add dump facility for HWM of W83627DHG-P 2013-06-04 21:14:55 +02:00
vgabios Rename devices -> device 2012-11-30 23:59:58 +01:00
viatool viatool: Add utility to read various configuration bits on VIA systems 2013-06-04 22:36:26 +02:00
xcompile util/xcompile/xcompile: set up for aarch64 2013-11-10 04:41:30 +01:00