All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Number of arguments
@ 2011-06-21 15:33 zenati
  2011-06-21 16:05 ` Philippe Gerum
  2011-07-06 12:22 ` [Xenomai-core] Implementation of skin Arinc653, process don't return zenati
  0 siblings, 2 replies; 6+ messages in thread
From: zenati @ 2011-06-21 15:33 UTC (permalink / raw)
  To: Xenomai-core

Dear,

As known, the norm arinc653 is very strict and the API proposed should 
be respected. Some functions of the API need more than five arguments. 
However, the "SKINCALL" is limited to 5. If I want to increase, I have 
to modify the following files :
  - ./xenomai-2.5.6/include/asm-arm/syscall.h
  - ./xenomai-2.5.6/include/asm-blackfin/syscall.h
  - ./xenomai-2.5.6/include/asm-x86/syscall.h
  - ./xenomai-2.5.6/include/asm-powerpc/syscall.h
  - ./xenomai-2.5.6/include/asm-nios2/syscall.h

Is it possible? Is is a good idea ?

Thank you for your attention and your help.
Sincerely

Omar ZENATI


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

* Re: [Xenomai-core] Number of arguments
  2011-06-21 15:33 [Xenomai-core] Number of arguments zenati
@ 2011-06-21 16:05 ` Philippe Gerum
  2011-07-06 12:22 ` [Xenomai-core] Implementation of skin Arinc653, process don't return zenati
  1 sibling, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2011-06-21 16:05 UTC (permalink / raw)
  To: zenati; +Cc: Xenomai-core

On Tue, 2011-06-21 at 17:33 +0200, zenati wrote:
> Dear,
> 
> As known, the norm arinc653 is very strict and the API proposed should 
> be respected. Some functions of the API need more than five arguments. 
> However, the "SKINCALL" is limited to 5. If I want to increase, I have 
> to modify the following files :
>   - ./xenomai-2.5.6/include/asm-arm/syscall.h
>   - ./xenomai-2.5.6/include/asm-blackfin/syscall.h
>   - ./xenomai-2.5.6/include/asm-x86/syscall.h
>   - ./xenomai-2.5.6/include/asm-powerpc/syscall.h
>   - ./xenomai-2.5.6/include/asm-nios2/syscall.h
> 
> Is it possible? Is is a good idea ?

No, dead end. You should group arguments in a struct and pass the
address of such struct to kernel land for decoding.

> 
> Thank you for your attention and your help.
> Sincerely
> 
> Omar ZENATI
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core

-- 
Philippe.




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

* [Xenomai-core] Implementation of skin Arinc653, process don't return
  2011-06-21 15:33 [Xenomai-core] Number of arguments zenati
  2011-06-21 16:05 ` Philippe Gerum
@ 2011-07-06 12:22 ` zenati
  2011-07-06 12:50   ` Gilles Chanteperdrix
  1 sibling, 1 reply; 6+ messages in thread
From: zenati @ 2011-07-06 12:22 UTC (permalink / raw)
  To: Xenomai-core

Dear,

I have implement a first version of the skin Arinc 653. However, I match 
one bug. Each time I execute a test I have implemented (Hello world 
test). The process display "Hello world!" but don't return and even if I 
do control-z or control-c the process don't terminate.

have and idea to fix this problem??

Thank you for your help.
Sincerely

Omar ZENATI



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

* Re: [Xenomai-core] Implementation of skin Arinc653, process don't return
  2011-07-06 12:22 ` [Xenomai-core] Implementation of skin Arinc653, process don't return zenati
@ 2011-07-06 12:50   ` Gilles Chanteperdrix
  2011-07-06 13:10     ` zenati
  0 siblings, 1 reply; 6+ messages in thread
From: Gilles Chanteperdrix @ 2011-07-06 12:50 UTC (permalink / raw)
  To: zenati; +Cc: Xenomai-core

On 07/06/2011 02:22 PM, zenati wrote:
> Dear,
> 
> I have implement a first version of the skin Arinc 653. However, I match 
> one bug. Each time I execute a test I have implemented (Hello world 
> test). The process display "Hello world!" but don't return and even if I 
> do control-z or control-c the process don't terminate.
> 
> have and idea to fix this problem??

It is hard to say anything witout seeing any code, but, when you hit
ctrl-C or ctrl-Z, the process receives a signal SIGINT or SIGTSTP. So,
in the implementation of this skin, did you handle the interruption of
blocking system calls by a signal correctly ?

-- 
					    Gilles.


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

* Re: [Xenomai-core] Implementation of skin Arinc653, process don't return
  2011-07-06 12:50   ` Gilles Chanteperdrix
@ 2011-07-06 13:10     ` zenati
  2011-07-06 13:19       ` Gilles Chanteperdrix
  0 siblings, 1 reply; 6+ messages in thread
From: zenati @ 2011-07-06 13:10 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Xenomai-core

No I don't implement any handler, but there isn't a handler by default? 
I don't see any handler of signals in the sources of others skins. it 
means that I have to implement a handler in source of the test?

On 07/06/2011 02:50 PM, Gilles Chanteperdrix wrote:
> On 07/06/2011 02:22 PM, zenati wrote:
>> Dear,
>>
>> I have implement a first version of the skin Arinc 653. However, I match
>> one bug. Each time I execute a test I have implemented (Hello world
>> test). The process display "Hello world!" but don't return and even if I
>> do control-z or control-c the process don't terminate.
>>
>> have and idea to fix this problem??
> It is hard to say anything witout seeing any code, but, when you hit
> ctrl-C or ctrl-Z, the process receives a signal SIGINT or SIGTSTP. So,
> in the implementation of this skin, did you handle the interruption of
> blocking system calls by a signal correctly ?
>



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

* Re: [Xenomai-core] Implementation of skin Arinc653, process don't return
  2011-07-06 13:10     ` zenati
@ 2011-07-06 13:19       ` Gilles Chanteperdrix
  0 siblings, 0 replies; 6+ messages in thread
From: Gilles Chanteperdrix @ 2011-07-06 13:19 UTC (permalink / raw)
  To: zenati; +Cc: Xenomai-core

On 07/06/2011 03:10 PM, zenati wrote:
> No I don't implement any handler, but there isn't a handler by default? 
> I don't see any handler of signals in the sources of others skins. it 
> means that I have to implement a handler in source of the test?

We do not understand your issue, you do not understand our answers,
please show us the code to avoid further misunderstandings.

-- 
					    Gilles.


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

end of thread, other threads:[~2011-07-06 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 15:33 [Xenomai-core] Number of arguments zenati
2011-06-21 16:05 ` Philippe Gerum
2011-07-06 12:22 ` [Xenomai-core] Implementation of skin Arinc653, process don't return zenati
2011-07-06 12:50   ` Gilles Chanteperdrix
2011-07-06 13:10     ` zenati
2011-07-06 13:19       ` Gilles Chanteperdrix

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.