diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-10-19 07:53:45 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-10-19 07:53:45 +0000 |
commit | 73f5bda01dbb1f6726593ab7a6139a1a8a1afb5a (patch) | |
tree | a8c3f64554ab03d54bacd86bde92d60844cf9d89 /flash.h | |
parent | 5e27b0bc1371a75ecf2e0b0224ca4e0137f87d46 (diff) | |
download | flashrom-73f5bda01dbb1f6726593ab7a6139a1a8a1afb5a.tar.gz flashrom-73f5bda01dbb1f6726593ab7a6139a1a8a1afb5a.tar.bz2 flashrom-73f5bda01dbb1f6726593ab7a6139a1a8a1afb5a.zip |
Make read before write configurable (infrastructure part)
- Introduce a variable in doit() that allows to influence
read-before-write and its consequences.
- Modify build_new_image so that it still works even if the old content
is not read before.
- Add copy_old_content() to ease the pain for future patches.
Corresponding to flashrom svn r1851.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -341,7 +341,7 @@ int register_include_arg(char *name); int process_include_args(void); int read_romlayout(const char *name); int normalize_romentries(const struct flashctx *flash); -int build_new_image(const struct flashctx *flash, uint8_t *oldcontents, uint8_t *newcontents); +int build_new_image(struct flashctx *flash, bool oldcontents_valid, uint8_t *oldcontents, uint8_t *newcontents); void layout_cleanup(void); /* spi.c */ |