flashrom: Check all mmap() calls and print helpful Linux error message.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3890 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Peter Stuge
2009-01-23 05:23:06 +00:00
parent 8a681b1d84
commit 2e5481356f
4 changed files with 19 additions and 7 deletions

View File

@@ -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;