__map_umm return NULL
Hello,
As explained in my previous question "TIP_HEAD bit during Xenomai initialization" I am porting xenomai 3 on a new architecture.
My problem here is that the function __map_umm return NULL. This cause a SEGV in cobalt_commit_memory.
I step into __map_umm with gdb and noticed that there is an open on /dev/rtdm/memdev-private which return fd = 0 : I think this is not normal ....
Then there is the ioctl command, which does not return an error and finally, the mmap function that return NULL. I am pretty sure that this is not normal too.
So what could be the cause?
Julien
Signature · 16 lines
Logo <http://www.smile.fr/> 14 rue Génissieu 38000 GRENOBLE www.smile.fr <http://www.smile.fr/> *Julien STEPHAN* Ingénieur étude et développement Email : [email protected] <mailto:[email protected]> Tel : +33 (0)4.58.00.19.59 bandeaux_mail <http://www.smile.fr/Ressources/Livres-blancs/Ingenierie/Linux-pour-l-embarque?utm_source=signature&utm_medium=email&utm_campaign=signature> eco Pour la planète, n'imprimez ce mail que si c'est nécessaire
Quoted 13 lines · Julien Stephan
Hello,
As explained in my previous question "
TIP_HEADbit during Xenomai initialization" I am porting xenomai 3 on a new architecture.My problem here is that the function
__map_ummreturn NULL. This cause a SEGV incobalt_commit_memory.I step into
__map_ummwith gdb and noticed that there is an open on/dev/rtdm/memdev-privatewhich return fd = 0 : I think this is not normal ....
Quoted 7 lines
Then there is the ioctl command, which does not return an error and finally, the mmap function that return NULL. I am pretty sure that this is not normal too.
So what could be the cause?
The code implementing the syscall interception by the pipeline seems broken. Since you did not mention which architecture you are porting to, I can't comment further.
Signature · 1 line
Philippe.