ron minnich wrote:
> On Wed, Jun 4, 2008 at 11:10 AM, Stefan Reinauer <[EMAIL PROTECTED]> wrote:
>
>> I'm not against using structs, in fact maybe we should just do it, but
>> they're not the optimal solution either. The guy who invented struct was
>> not a firmware developer
>
> you gotta trust me on this, but, back then, writing an OS was not that
> much different. In fact Unix V6 and coreboot are just about the same
> size ...
>
So are you saying we should make this part of our coding guidelines?
I believe we really have not used this anywhere in v2 so far. Maybe we
should start doing this for v3?
How do we handle tables like the resource setup in the K8 code? It's
mostly int arrays of
{
offset, andvalue, orvalue,
offset, andvalue, orvalue,
offset, andvalue, orvalue,
}
This kind of partial filling would have to be done in code completely
mystruct.member1 &= andvalue1;
mystruct.member1 |= orvalue1;
...
Or is there a better way?
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [EMAIL PROTECTED] • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot