[flashrom] [PATCH 1/2] Various fixes for building as a payload.

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Jun 13 00:18:14 CEST 2011


Am 12.06.2011 16:26 schrieb Idwer Vollering:
> 2011/6/12 Tadas Slotkus <devtadas at gmail.com>:
>   
>> Signed-off-by: Tadas Slotkus <devtadas at gmail.com>
>>     

>> diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c
>> index 046b9f3..5299c6e 100644
>> --- a/sst49lfxxxc.c
>> +++ b/sst49lfxxxc.c
>> @@ -61,13 +61,12 @@ int unlock_49lfxxxc(struct flashchip *flash)
>>
>>  int erase_sector_49lfxxxc(struct flashchip *flash, unsigned int address, unsigned int sector_size)
>>  {
>> -       uint8_t status;
>>        chipaddr bios = flash->virtual_memory;
>>
>>        chip_writeb(0x30, bios);
>>        chip_writeb(0xD0, bios + address);
>>
>> -       status = wait_82802ab(flash);
>> +       wait_82802ab(flash);
>>
>>        if (check_erased_range(flash, address, sector_size)) {
>>                msg_cerr("ERASE FAILED!\n");
>>     
> GCC 4.6 fix, applies to all build targets.
>   

Stefan Reinauer already sent a patch for that some time ago:
http://patchwork.coreboot.org/patch/1239/

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/





More information about the flashrom mailing list