diff options
author | Ollie Lho <ollie@sis.com.tw> | 2004-03-17 23:03:37 +0000 |
---|---|---|
committer | Ollie Lho <ollie@sis.com.tw> | 2004-03-17 23:03:37 +0000 |
commit | cec287936c8e00039f634cbfeb2cc64b457f2da0 (patch) | |
tree | aa1590de7e9a82938b5c037bb89947cb907344c7 /flash_rom.c | |
parent | cbbf1259817896cd6339e7517404ba64aa85ed8d (diff) | |
download | ast2050-flashrom-cec287936c8e00039f634cbfeb2cc64b457f2da0.zip ast2050-flashrom-cec287936c8e00039f634cbfeb2cc64b457f2da0.tar.gz |
Use standard product ID exit method for w49f002u
Corresponding to flashrom svn r7 and coreboot v2 svn r1433.
Diffstat (limited to 'flash_rom.c')
-rw-r--r-- | flash_rom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flash_rom.c b/flash_rom.c index 9274291..b8ffeb0 100644 --- a/flash_rom.c +++ b/flash_rom.c @@ -116,7 +116,7 @@ struct flashchip * probe_flash(struct flashchip * flash) } bios = mmap (0, size, PROT_WRITE | PROT_READ, MAP_SHARED, //fd_mem, (off_t) (0x100000000-size)); - fd_mem, (off_t) (0x0-size)); + fd_mem, (off_t) (0xffffffff-size+1)); if (bios == MAP_FAILED) { perror("Error MMAP /dev/mem"); exit(1); |