diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-01-03 14:30:33 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-01-04 06:37:59 +0100 |
commit | 05cbce672e4a41bc55fc09b65aacd0872a756a5b (patch) | |
tree | 953148725b84ad4a5cd8248c469f6a96f160f7a8 /src/northbridge/amd/cimx/rd890 | |
parent | 3d4762d450f63c32038b4c9c422dc99c98fdee9a (diff) | |
download | coreboot-05cbce672e4a41bc55fc09b65aacd0872a756a5b.tar.xz |
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)
Diffstat (limited to 'src/northbridge/amd/cimx/rd890')
0 files changed, 0 insertions, 0 deletions