summaryrefslogtreecommitdiffstats
path: root/layout.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2019-01-23 17:07:49 +0100
committerNico Huber <nico.h@gmx.de>2019-03-04 15:01:59 +0000
commit6e61e0cf9cf038d5f95bcbe5b6516d58ecd81d7d (patch)
tree00ef055c999d0c6ddec61f0dd500859908e22425 /layout.h
parentdb7482bb72035fab8386226d1720cde09e0c700e (diff)
downloadflashrom-6e61e0cf9cf038d5f95bcbe5b6516d58ecd81d7d.tar.gz
flashrom-6e61e0cf9cf038d5f95bcbe5b6516d58ecd81d7d.tar.bz2
flashrom-6e61e0cf9cf038d5f95bcbe5b6516d58ecd81d7d.zip
Fix erasing of unaligned regions
The erase (-E) feature is somehow a brute force method, but still, if we are given a region to erase, we should make sure to restore surrounding data if the erase block expands beyond the region. It shares a lot of code with the write path. Though, experiments with common functions have shown that it would make the whole function even harder to read. Maybe we could add some abstraction if we ever need similar code on a third path. Change-Id: I5fc35310f0b090f218cd1d660e27fb39dd05c3c5 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/31068 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'layout.h')
0 files changed, 0 insertions, 0 deletions