Skip to content
Advertisement

Linux readw and readl endianness

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.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement