
Dear Graeme,
In message d66caabb0811231536k455da2e6wc0ce1a774d37e4@mail.gmail.com you wrote:
The only clean and portable and thus reliable way is to use the (CPU specific) accessor macros or functions.
Will do :)
thanks.
It seems to me that more and more of these 'style' issues are cropping up. Should there be a document that covers them so we can start to systematically improve the consistency of the code?
Well, there is: http://www.denx.de/wiki/U-Boot/CodingStyle and Linux/Documentation/
The thing is, that only now people start to realize the importance of some of these issues. The PowerPC tree may be well ahead compared to other architectures, because that's where both big fat 64bit server machines on one side and low-end (50 MHz) embedded processors on the other side have been supported for a long time. I think no other architecture does that in a similar way. [x86 may be different, because it always is.]
Best regards,
Wolfgang Denk