From 49eb4dd70426cf1dd29ab140447329cec6441d42 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Fri, 19 Jun 2009 11:23:57 +0000 Subject: 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 Acked-by: Uwe Hermann --- pm49fl00x.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pm49fl00x.c') 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"); -- cgit v1.1