Stefan Reinauer 05cbce672e cbmem utility: Use mmap instead of fseek/fread
The kernel on Ubuntu 12.04LTS does not allow to use
fseek/fread to read the coreboot table at the end of
memory but will instead abort cbmem with a "Bad Address"
error.

Whether that is a security feature (some variation of
CONFIG_STRICT_DEVMEM) or a kernel bug is not  yet clear,
however using mmap works nicely.

Change-Id: I796b4cd2096fcdcc65c1361ba990cd467f13877e
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2097
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
2013-01-04 06:37:59 +01:00
..
2012-02-17 19:04:31 +01:00
2012-04-28 02:46:54 +02:00
2012-11-30 23:59:58 +01:00
2010-09-21 21:16:27 +00:00
2012-06-22 09:19:37 +02:00
2012-10-03 09:26:59 +02:00
2012-11-30 23:59:58 +01:00
2013-01-04 00:48:49 +01:00