May anyone please explain the endianness of returned values by readw
and readl
. I am currently using PowerPC arch.
Thanks and Best Regards!
Advertisement
Answer
“readw” and “readl” return the value of the underlying architecture.
As it happens, a PowerPC can be either big- or little endian.
AFAIK, most Linux implementations run PPC in big-endian mode.