summaryrefslogtreecommitdiffstats
path: root/cbtable.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-01-23 05:23:06 +0000
committerPeter Stuge <peter@stuge.se>2009-01-23 05:23:06 +0000
commitccf8c6c79444108b45ed82d96b18cbdb6a8d2cff (patch)
treeb7417fb2e24f15ed90e8102301ff365a71852878 /cbtable.c
parent72c9668b9535bfe40d3e321faa26cfe5bb9a44b3 (diff)
downloadflashrom-ccf8c6c79444108b45ed82d96b18cbdb6a8d2cff.tar.gz
flashrom-ccf8c6c79444108b45ed82d96b18cbdb6a8d2cff.tar.bz2
flashrom-ccf8c6c79444108b45ed82d96b18cbdb6a8d2cff.zip
Check all mmap() calls and print helpful Linux error message
Corresponding to flashrom svn r386 and coreboot v2 svn r3890. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'cbtable.c')
-rw-r--r--cbtable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cbtable.c b/cbtable.c
index cc3a73c32..e4ae0f9d5 100644
--- a/cbtable.c
+++ b/cbtable.c
@@ -191,6 +191,7 @@ int coreboot_init(void)
0x00000000);
if (low_1MB == MAP_FAILED) {
perror("Can't mmap memory using " MEM_DEV);
+ mmap_errmsg();
exit(-2);
}
lb_table = 0;