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
commit5859ced80f17217e7e829b61b02bb18b66b4f8e4 (patch)
tree16c9266af61435d7f2603998a3730ec7be1e09ed /chipdrivers.h
parente814a9b6e83deea2bbc9d287e8a9ee0a409a969e (diff)
downloadast2050-flashrom-5859ced80f17217e7e829b61b02bb18b66b4f8e4.zip
ast2050-flashrom-5859ced80f17217e7e829b61b02bb18b66b4f8e4.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