[coreboot] Incorrect casting in romcc.

Stefan Reinauer stepan at coresystems.de
Fri Sep 12 15:09:55 CEST 2008


Mats Erik Andersson wrote:
> 	data += ( fn(0x10) >> 1 ) && 0x007f;
>
> where fn(0x10) == 0x1010. However, the actual outcome of the previous
> calculation is the value 0x01, instead of the expected 0x08. 
1 is very much the expected result because the above is a boolean
expression, not a bitwise AND.

Looks like a bug in the 440bx ram init code.

Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866





More information about the coreboot mailing list