Cyril Wallois wrote: > Hi all, > > This problem seems to be solve with last version of Xenomai. > > Nevertheless, Rtping doesn't run. Now I have the following error message : > > Xenomai: suspending kernel thread bf0096f0 ('rtnet-rtpc') at 0xc002d3c8 > after exception #0 > > The error seems to comes from the function rt_icmp_echo_reply, I put > some some printk in this function, and conclude that the error appears > when trying to use the rtt field of the ping structure in ipv4_cmd : > > struct ipv4_cmd { > struct rtnet_ioctl_head head; > > union { > ... > > /*** rtping ***/ > struct { > __u32 ip_addr; > __u16 id; > __u16 sequence; > __u32 msg_size; > __u32 timeout; > __s64 rtt; > } ping; > > __u64 __padding[8]; > } args; > }; > > I don't know why I have this error with this embedded system (PXA270, > armv5te) and not with the previous system (armv4t). The compiler is a > bit different, arm-linux-gnueabi against arm-linux-eabi before.
In any case, there may be a problem if the struct ipv4_cmd buffer you have is aligned on a 32 bits boundary and not a 64 bits boundary. So, it depends on how alignment is handled in the allocator used. armv5 has ldrd instruction which probably requires the address to be 64 bits aligned, on the other hand, armv4 would use an ldmia, which does not have any alignment requirement. -- Gilles. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users