[flashrom] [PATCH] Mask the correct number of bits for BARs

Uwe Hermann uwe at hermann-uwe.de
Wed Mar 17 01:45:12 CET 2010


On Thu, Mar 04, 2010 at 09:00:49PM +0100, Carl-Daniel Hailfinger wrote:
> PCI device BARs of all types had only bits 1:0 cleared while reading the
> address. That was correct for IO BARs, but failed to mask bit 3:2 for
> MEM BARs, resulting in odd offsets for prefetchable MEM BARs and for
> 64-bit capable MEM BARs.
> Mask the correct number of bits for all types of BARs and add some debug
> printing about BAR type.
> 
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Acked-by: Uwe Hermann <uwe at hermann-uwe.de>

 
Uwe.
-- 
http://www.hermann-uwe.de  | http://www.randomprojects.org
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org




More information about the flashrom mailing list