mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
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>
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user