diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-19 11:23:57 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-19 11:23:57 +0000 |
commit | 49eb4dd70426cf1dd29ab140447329cec6441d42 (patch) | |
tree | 2ac018e84e510e1c9fe7f1b5b2cc4943606cbfd0 /pm49fl00x.c | |
parent | 20a293fc680acd9a3cc8a6a05e4da90d55886495 (diff) | |
download | flashrom-49eb4dd70426cf1dd29ab140447329cec6441d42.tar.gz flashrom-49eb4dd70426cf1dd29ab140447329cec6441d42.tar.bz2 flashrom-49eb4dd70426cf1dd29ab140447329cec6441d42.zip |
Kill obsolete exclude range feature
It is ignored by almost every chip and does not work for external
flashers. Plus, it gives the user a false sense of security in some
corner cases.
Corresponding to flashrom svn r608.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'pm49fl00x.c')
-rw-r--r-- | pm49fl00x.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pm49fl00x.c b/pm49fl00x.c index 3b284e6b..27a1163a 100644 --- a/pm49fl00x.c +++ b/pm49fl00x.c @@ -22,8 +22,6 @@ #include "flash.h" -extern int exclude_start_page, exclude_end_page; - void write_lockbits_49fl00x(chipaddr bios, int size, unsigned char bits, int block_size) { @@ -64,9 +62,6 @@ int erase_49fl00x(struct flashchip *flash) */ printf("Erasing page: "); for (i = 0; i < total_size / page_size; i++) { - if ((i >= exclude_start_page) && (i < exclude_end_page)) - continue; - /* erase the page */ if (erase_block_jedec(flash, i * page_size, page_size)) { fprintf(stderr, "ERASE FAILED!\n"); @@ -98,9 +93,6 @@ int write_49fl00x(struct flashchip *flash, uint8_t *buf) printf("Programming page: "); for (i = 0; i < total_size / page_size; i++) { - if ((i >= exclude_start_page) && (i < exclude_end_page)) - continue; - /* erase the page before programming */ if (erase_block_jedec(flash, i * page_size, page_size)) { fprintf(stderr, "ERASE FAILED!\n"); |