Failed to create a new task

Adam Lackorzynski adam at os.inf.tu-dresden.de
Mon Mar 10 00:43:17 CET 2008


Hi,

On Sat Mar 08, 2008 at 22:54:30 -0800, ahmad kamal wrote:
> I've failed to create a new task:
> 
> the l4_task_new in my code return 0 (L4_NIL_ID) which is indicate
> either the task was create as inactive or didn't create at all.

Good you have posted the source.

I think the problem is that you need to get the right for creating new
tasks first. Depending whether simple_ts is started or not you need to
use
  l4ts_allocate_task2(0, &tid)
or
  rmgr_get_task(num)

before the l4_task_new. Then it should work.

 

Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list