diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-06-19 11:23:57 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-06-19 11:23:57 +0000 |
commit | 840ef2fe2d271dbd1aa9bc2925d9510adf845d19 (patch) | |
tree | 2ac018e84e510e1c9fe7f1b5b2cc4943606cbfd0 /pm49fl00x.c | |
parent | 30cf46785a2a4f99ec26fd87cf99be2c1d2f38fe (diff) | |
download | flashrom-840ef2fe2d271dbd1aa9bc2925d9510adf845d19.tar.gz |
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.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@608 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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 3b284e6..27a1163 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"); |