[okl4-developer] syscall protocol

Geoffrey Lee glee at ok-labs.com
Thu Jun 12 08:09:30 EST 2008


On Wed, Jun 11, 2008 at 02:39:30PM +0200, Charles.VANWITTENBERGHE at fr.thalesgroup.com wrote:


Hi Charles



> 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.


To dynamically create a thread from the roottask at runtime you should call 
L4_ThreadControl().  The user side of the system call stub is located in 
arch/{ia32,mips,arm}/libs/l4.

	-gl

> 
> ----
> 
> 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
> 
> 
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
> 

-- 




More information about the Developer mailing list