diff options
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 9274291a..b8ffeb06 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); |