AFAIU, the "implementation dependent direction" here is big vs
little enedian, at most. See that that _addresses_ are guaranteed to be
increasing. Modulo padding (which in the example below isn't applicable
anywhere I know), they are the same anywhere.
> So all drivers (I'm sure there are a few) that use something like
>
> struct foo {
> u32 a;
> u32 b;
> u32 c;
> u32 d;
> }
>
> to communicate with some hardware (4 32-bit values with addresses in
> sequence) should be fixed not to make assumptions about the layout of a
> struct?
This would break one of the important uses of C (hardware fiddling) big
way.
-- Horst von Brand vonbrand@sleipnir.valparaiso.cl Casilla 9G, Vin~a del Mar, Chile +56 32 672616- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/