[okl4-developer] syscall protocol

Charles.VANWITTENBERGHE at fr.thalesgroup.com Charles.VANWITTENBERGHE at fr.thalesgroup.com
Wed Jun 11 22:39:30 EST 2008


Hi !

After initialization of OKL4, I tried to create a new thread from the Root Task. It seems clear for me that the correct protocol for that is to make a ThreadControl syscall.

So I wrote a few lines of assembler, to put the right values for the parameters in the right registers, and I used the instruction SYSCALL, which rise an exception. It works well, the exception is correctly handled by the kernel and I arrive in SYS_THREAD_CONTROL.

But I was wondering what was the function is the API to do that. I presume one don't always have to write assembler code to launch a syscall.

----

Charles Van Wittenberghe
Stagiaire service SES
THALES COMMUNICATION 
110 Avenue du Maréchal Leclerc
BP 70942- 49309 CHOLET
tel : 06.84.12.45.87
charles.vanwittenberghe at fr.thalesgroup.com




More information about the Developer mailing list