aboutsummaryrefslogtreecommitdiff
path: root/src/include/elog.h
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-04-19 14:22:29 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-11-25 23:02:07 +0100
commit8c5947709a1d9e72d6ce17c48068b38afcb81967 (patch)
tree48192a47a8a118d300a3244d6b355fe640ed35dd /src/include/elog.h
parentfe8290de22562251ef94fdd09c6577ae3ede1c44 (diff)
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>
Diffstat (limited to 'src/include/elog.h')
0 files changed, 0 insertions, 0 deletions