is rmgr a roottask? why we need to rmgr_get_task(int taskno)?
----- Original Message ---- From: Adam Lackorzynski adam@os.inf.tu-dresden.de To: l4-hackers@os.inf.tu-dresden.de Sent: Monday, March 10, 2008 7:43:17 AM Subject: Re: Failed to create a new task
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
On Sun Mar 09, 2008 at 23:31:47 -0700, ahmad kamal wrote:
is rmgr a roottask?
Yes.
why we need to rmgr_get_task(int taskno)?
Because you need to have the right to create new tasks and roottask is implementing the policy for this so that you can create them.
----- Original Message ---- From: Adam Lackorzynski adam@os.inf.tu-dresden.de To: l4-hackers@os.inf.tu-dresden.de Sent: Monday, March 10, 2008 7:43:17 AM Subject: Re: Failed to create a new task
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
l4-hackers@os.inf.tu-dresden.de