path: root/flashrom.c
diff options
authorCarl-Daniel Hailfinger <>2009-08-19 15:19:18 +0000
committerCarl-Daniel Hailfinger <>2009-08-19 15:19:18 +0000
commitf5fb51c4ba3dae5ed78a10fb9280efa096609de5 (patch)
tree922fc8b531c599c54ac765c03eabdb4bfb0e99e1 /flashrom.c
parent664e7ad995a86663e12fc0785ffd3cdc939b9311 (diff)
Adept layout handling to new programmer infrastructure and fix off-by-one error
Flashrom has the ability to use layout files with romentries, but this feature was not adapted to the programmer infrastructure and had undefined behaviour for flasher!=internal. The romentry handling had an off-by-one error which caused all copies to end up one byte short. Fix these issues. Corresponding to flashrom svn r694. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Stefan Reinauer <>
Diffstat (limited to 'flashrom.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/flashrom.c b/flashrom.c
index b531699..fc80301 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -930,8 +930,7 @@ int main(int argc, char *argv[])
// This should be moved into each flash part's code to do it
// cleanly. This does the job.
- /* FIXME: Adapt to the external flasher infrastructure. */
- handle_romentries(buf, (uint8_t *) flash->virtual_memory);
+ handle_romentries(buf, flash);
// ////////////////////////////////////////////////////////////
OpenPOWER on IntegriCloud