another endianness issue...

Benjamin Herrenschmidt benh at
Sun Jun 24 09:22:50 EST 2001

>> Bitfields are not a good way to describe hardware registers.
>Why is that? Are there generally bitfield problems other than this one?

Neither structures nor bitfields are good for describing HW registers
because they are always implementation dependant, the actual layout
in memory of a structure of a bitfield depends completely on the
compiler, it's setting, the platform, whatever....


** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list