Changeset 185 for trunk/flashrom.c
- Timestamp:
- Jan 22, 2008 4:19:01 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/flashrom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/flashrom.c
r182 r185 160 160 int idx; 161 161 int total_size = flash->total_size * 1024; 162 volatile uint8_t *bios = flash->virtual_memory; 162 uint8_t *buf2 = (uint8_t *) calloc(total_size, sizeof(char)); 163 if (flash->read == NULL) 164 memcpy(buf2, (const char *)flash->virtual_memory, total_size); 165 else 166 flash->read(flash, buf2); 163 167 164 168 printf("Verifying flash... "); … … 171 175 printf("0x%08x", idx); 172 176 173 if (*(b ios+ idx) != *(buf + idx)) {177 if (*(buf2 + idx) != *(buf + idx)) { 174 178 if (verbose) { 175 179 printf("0x%08x ", idx);
Note: See TracChangeset
for help on using the changeset viewer.
