[flashrom] [commit] r961 - trunk

repository service svn at flashrom.org
Sat Mar 20 16:15:38 CET 2010


Author: snelson
Date: Sat Mar 20 16:15:36 2010
New Revision: 961
URL: http://flashrom.org/trac/coreboot/changeset/961

Log:
unlock fixup

Signed-off-by: Sean Nelson <audiohacked at gmail.com>
Acked-by: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>

Modified:
   trunk/82802ab.c
   trunk/stm50flw0x0x.c

Modified: trunk/82802ab.c
==============================================================================
--- trunk/82802ab.c	Sat Mar 20 04:01:19 2010	(r960)
+++ trunk/82802ab.c	Sat Mar 20 16:15:36 2010	(r961)
@@ -97,7 +97,7 @@
 	int i;
 	//chipaddr wrprotect = flash->virtual_registers + page + 2;
 
-	for (i = 0; i < flash->total_size; i+= flash->page_size)
+	for (i = 0; i < flash->total_size * 1024; i+= flash->page_size)
 	{
 		chip_writeb(0, flash->virtual_registers + i + 2);
 	}

Modified: trunk/stm50flw0x0x.c
==============================================================================
--- trunk/stm50flw0x0x.c	Sat Mar 20 04:01:19 2010	(r960)
+++ trunk/stm50flw0x0x.c	Sat Mar 20 16:15:36 2010	(r961)
@@ -85,7 +85,7 @@
 {
 	int i;
 
-	for (i = 0; i < flash->total_size; i+= flash->page_size) {
+	for (i = 0; i < flash->total_size * 1024; i+= flash->page_size) {
 		if(unlock_block_stm50flw0x0x(flash, i)) {
 			fprintf(stderr, "UNLOCK FAILED!\n");
 			return -1;




More information about the flashrom mailing list