summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-03-15 23:41:19 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2008-03-15 23:41:19 +0000
commit72123a5b0748bdc4936cfe1cd0ab1aab31eb71f7 (patch)
tree7eaf9479823113c9d8636dbb0c2a3f9b15928030 /flashrom.c
parent7615868f0b82fc84677905781e9ff11e46d6ae12 (diff)
downloadast2050-flashrom-72123a5b0748bdc4936cfe1cd0ab1aab31eb71f7.zip
ast2050-flashrom-72123a5b0748bdc4936cfe1cd0ab1aab31eb71f7.tar.gz
Remove nasty warning that happened due to our vendor detection
Corresponding to flashrom svn r210 and coreboot v2 svn r3151. mechanism. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/flashrom.c b/flashrom.c
index a8ea4a3..4130d76 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -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,
OpenPOWER on IntegriCloud