diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-19 15:19:18 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-19 15:19:18 +0000 |
commit | f5fb51c4ba3dae5ed78a10fb9280efa096609de5 (patch) | |
tree | 922fc8b531c599c54ac765c03eabdb4bfb0e99e1 /flash.h | |
parent | 664e7ad995a86663e12fc0785ffd3cdc939b9311 (diff) | |
download | flashrom-f5fb51c4ba3dae5ed78a10fb9280efa096609de5.tar.gz flashrom-f5fb51c4ba3dae5ed78a10fb9280efa096609de5.tar.bz2 flashrom-f5fb51c4ba3dae5ed78a10fb9280efa096609de5.zip |
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 <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -422,7 +422,7 @@ char *strcat_realloc(char *dest, const char *src); int show_id(uint8_t *bios, int size, int force); int read_romlayout(char *name); int find_romentry(char *name); -int handle_romentries(uint8_t *buffer, uint8_t *content); +int handle_romentries(uint8_t *buffer, struct flashchip *flash); /* cbtable.c */ int coreboot_init(void); |