Skip to contentSkip to conversation

Number of arguments

Xenomai-core zenati 3 participants 6 messages Jun 21, 2011 – Jul 6, 2011

lore
Share & tools
lore

zenati

author
#0 lore raw

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

#1 lore raw
Quoted 12 lines · zenati

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

Quoted 1 line

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.

Quoted 10 lines

Thank you for your attention and your help.
Sincerely

Omar ZENATI

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
author
#2 lore raw

[Xenomai-core] Implementation of skin Arinc653, process don't return

In reply to zenati

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

#3 lore raw

Re: [Xenomai-core] Implementation of skin Arinc653, process don't return

Quoted 8 lines · zenati

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 ?

Signature · 1 line
					    Gilles.
author
#4 lore raw

Re: [Xenomai-core] Implementation of skin Arinc653, process don't return

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?

Quoted 14 lines · Gilles Chanteperdrix
Quoted 8 lines · zenati

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 ?

#5 lore raw

Re: [Xenomai-core] Implementation of skin Arinc653, process don't return

Quoted 3 lines · zenati

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.

Signature · 1 line
					    Gilles.