Commit 72123a5b authored by Stefan Reinauer's avatar Stefan Reinauer Committed by Stefan Reinauer
Browse files

Remove nasty warning that happened due to our vendor detection


Corresponding to flashrom svn r210 and coreboot v2 svn r3151.

mechanism.
Signed-off-by: default avatarStefan Reinauer <stepan@coresystems.de>
Acked-by: default avatarStefan Reinauer <stepan@coresystems.de>
parent 7615868f
......@@ -129,9 +129,12 @@ struct flashchip *probe_flash(struct flashchip *flash)
*/
if (getpagesize() > size) {
/*
* if a flash size of 0 is mapped, we map a single page
* so we can probe in that area whether we know the
* vendor at least.
*/
size = getpagesize();
printf("WARNING: size: %d -> %ld (page size)\n",
flash->total_size * 1024, (unsigned long)size);
}
bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment