All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] shared heap access mixing 32 and 64 bits applications
@ 2017-01-26  9:44 Stéphane Ancelot
  2017-01-26 10:12 ` Lassi Niemistö
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphane Ancelot @ 2017-01-26  9:44 UTC (permalink / raw)
  To: xenomai

Hi,

Is it possible to access same shared memory heaps , between 32 and 64 
bits processes ?

Regards,

S.Ancelot



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai] shared heap access mixing 32 and 64 bits applications
  2017-01-26  9:44 [Xenomai] shared heap access mixing 32 and 64 bits applications Stéphane Ancelot
@ 2017-01-26 10:12 ` Lassi Niemistö
  2017-01-27  7:54   ` Stéphane Ancelot
  0 siblings, 1 reply; 4+ messages in thread
From: Lassi Niemistö @ 2017-01-26 10:12 UTC (permalink / raw)
  To: Stéphane Ancelot, xenomai

> Is it possible to access same shared memory heaps , between 32 and 64 bits processes ?

In regular linux I faced the wall when trying to protect the usage of the shared memory area by (pthread iirc) mutex/semaphore - those structures had differences between 32/64bit platforms. I don't know if situation is same in Xenomai but pay attention also to what you are going to put in the shared memory.

-Lassi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai] shared heap access mixing 32 and 64 bits applications
  2017-01-26 10:12 ` Lassi Niemistö
@ 2017-01-27  7:54   ` Stéphane Ancelot
  2017-01-27  8:29     ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphane Ancelot @ 2017-01-27  7:54 UTC (permalink / raw)
  To: Lassi Niemistö, xenomai



Le 26/01/2017 à 11:12, Lassi Niemistö a écrit :
>> Is it possible to access same shared memory heaps , between 32 and 64 bits processes ?
> In regular linux I faced the wall when trying to protect the usage of the shared memory area by (pthread iirc) mutex/semaphore - those structures had differences between 32/64bit platforms. I don't know if situation is same in Xenomai but pay attention also to what you are going to put in the shared memory.
>
> -Lassi

I have now the answer regarding xenomai shared heaps between 32 and 64  
bits processes , here is the status, if you use the latest next xenomai 
branch.
within a system running 64 bits xenomai kernel, you can :
* use shared heap areas with 32 bits xenomai processes
* use shared heap areas with 64 bits xenomai processes
* you can not use shared heap areas between 32 and 64 bits xenomai 
processes.
Each area (32/64) are insulated, this incompatibility issue comes mainly 
from usage of size_t type in the xenomai  heap library which are 
different between 32 and 64 bits systems.
and maybe more other reasons ...

So, this is good to know that incompatibility , you can not mix both 
kind of processes in xenomai.



Regards,
S.Ancelot


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai] shared heap access mixing 32 and 64 bits applications
  2017-01-27  7:54   ` Stéphane Ancelot
@ 2017-01-27  8:29     ` Philippe Gerum
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2017-01-27  8:29 UTC (permalink / raw)
  To: Stéphane Ancelot, Lassi Niemistö, xenomai

On 01/27/2017 08:54 AM, Stéphane Ancelot wrote:
> 
> 
> Le 26/01/2017 à 11:12, Lassi Niemistö a écrit :
>>> Is it possible to access same shared memory heaps , between 32 and 64
>>> bits processes ?
>> In regular linux I faced the wall when trying to protect the usage of
>> the shared memory area by (pthread iirc) mutex/semaphore - those
>> structures had differences between 32/64bit platforms. I don't know if
>> situation is same in Xenomai but pay attention also to what you are
>> going to put in the shared memory.
>>
>> -Lassi
> 
> I have now the answer regarding xenomai shared heaps between 32 and 64 
> bits processes , here is the status, if you use the latest next xenomai
> branch.
> within a system running 64 bits xenomai kernel, you can :
> * use shared heap areas with 32 bits xenomai processes
> * use shared heap areas with 64 bits xenomai processes
> * you can not use shared heap areas between 32 and 64 bits xenomai
> processes.
> Each area (32/64) are insulated, this incompatibility issue comes mainly
> from usage of size_t type in the xenomai  heap library which are
> different between 32 and 64 bits systems.
> and maybe more other reasons ...
> 
> So, this is good to know that incompatibility , you can not mix both
> kind of processes in xenomai.


There is absolutely no provision for sharing Xenomai sessions in general
between 32/64 bit applications, and there won't be any, ever. Mixed ABI
support relates to invoking 64bit kernel services from a 32bit
application, nothing beyond that.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-27  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-26  9:44 [Xenomai] shared heap access mixing 32 and 64 bits applications Stéphane Ancelot
2017-01-26 10:12 ` Lassi Niemistö
2017-01-27  7:54   ` Stéphane Ancelot
2017-01-27  8:29     ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.