NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

9068 Conditional Disable and OS/Processor

Solved!
Go to solution

@GrahamB
The issue is because we call a C function which returns data with different endinaness depending on the architecture. The library right now doesn't run on any x86 based Linux, but I just wanted to be thourough now in case we ever do in the future. 

Why not just writing the lib function in a way that it always uses the same endianess on all architectures ? (see ntoh(), hton()).

 

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos
Message 11 of 11
(325 Views)