remove nasty warning that happened due to our vendor detection
mechanism. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
9dcfc00dc6
commit
582ce71cc5
|
@ -129,9 +129,12 @@ struct flashchip *probe_flash(struct flashchip *flash)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (getpagesize() > size) {
|
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();
|
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,
|
bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
|
||||||
|
|
Loading…
Reference in New Issue