summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-12-20 16:45:31 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-12-20 16:45:31 +0000
commit1f795e4b3d20d8a9a558c1890b79a4c3ecab703c (patch)
tree16c9266af61435d7f2603998a3730ec7be1e09ed /chipdrivers.h
parentec11c56e2398a7bdd699472fffc878572fa553fa (diff)
downloadflashrom-1f795e4b3d20d8a9a558c1890b79a4c3ecab703c.zip
flashrom-1f795e4b3d20d8a9a558c1890b79a4c3ecab703c.tar.gz
Fix handling of write protection at register space address +2
Since r1833 we added the offset of the virtual register in several functions, which produced segfaults. This patch renames a few parameters and reorganizes/fixes various parts of the changelock_regspace2_block() function - hence the rather big diff. Thanks to Roman Lebedev for reporting this issue and testing numerous revisions of this patch. Corresponding to flashrom svn r1859. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r--chipdrivers.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index 8529c74..cac94f3 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -150,7 +150,6 @@ int unlock_regspace2_uniform_32k(struct flashctx *flash);
int unlock_regspace2_uniform_64k(struct flashctx *flash);
int unlock_regspace2_block_eraser_0(struct flashctx *flash);
int unlock_regspace2_block_eraser_1(struct flashctx *flash);
-int unlock_regspace2_block(const struct flashctx *flash, chipaddr off);
int printlock_regspace2_uniform_64k(struct flashctx *flash);
int printlock_regspace2_block_eraser_0(struct flashctx *flash);
int printlock_regspace2_block_eraser_1(struct flashctx *flash);
OpenPOWER on IntegriCloud