Revamp cbmem.py to use the coreboot tables.
authorGabe Black <gabeblack@google.com>
Sat, 7 Jan 2012 09:03:42 +0000 (01:03 -0800)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 30 Mar 2012 15:46:26 +0000 (17:46 +0200)
commit5d3438de41368acc89d80af7b8d235d0d1b19b60
tree2688ed3c09ec095c281bdeee9f01ce31025725fb
parent67aa3d6b878c5deea8d14054cce700ac1d045505
Revamp cbmem.py to use the coreboot tables.

This change makes significant changes to cbmem.py to make it use the
coreboot tables to find the memory console and timestamp areas instead
of looking for the in memory table TOC structure. That appears to be
more robust and gets cbmem.py working again after some unrelated
changes that affected memory layout.

It also introduces some small infrastructure to make accessing C style
structures in physical memory easier and more transparent.

Change-Id: I51833055a50c2d76423520ba6e059bf8fc50adea
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/762
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
util/cbmem/cbmem.py