[LinuxPPS] 24 Jul 16:08 - LinuxPPS: padding data for 32-bit vs. 64-bit compatibility.

linuxpps: Rodolfo Giometti <> webmaster at enneenne.com
Fri Jul 27 19:45:05 CEST 2007


LinuxPPS: padding data for 32-bit vs. 64-bit compatibility.  
  
0n i386, the alignment of a uint64_t is only 4 bytes, while on most other  
architectures it's 8 bytes. On i386, there will be no padding between the  
two consecutive 'struct pps_ktime' members of struct pps_kinfo and struct  
pps_kparams. But on most platforms there will be padding to ensure correct  
alignment.  
  
The simple fix is probably to add an explicit padding.  
[David Woodhouse]  
  
Signed-off-by: Rodolfo Giometti   
  
include/linux/pps.h

URL: http://gitweb.enneenne.com/?p=linuxpps;a=commit;h=837d9bebfa07f4dc936ee78482a115da626063bf



More information about the LinuxPPS mailing list