Managed to pass utcb information to tasks via an ipc() call.

Removed setting of tag during ipc_return(). So it does not overwrite
return value anymore.

Next stage is for the tasks to map their utcb via shmget/shmat before
accessing.
This commit is contained in:
Bahadir Balban
2008-03-19 02:55:31 +00:00
parent 16617eed36
commit 55d24dbbdf
3 changed files with 17 additions and 7 deletions

View File

@@ -52,7 +52,6 @@ int task_send_utcb_address(l4id_t sender, l4id_t taskid)
task->utcb_address = (unsigned long)utcb_vaddr_new();
/* Return it to requester */
printf("%s: Returning 0x%x\n", __FUNCTION__, task->utcb_address);
return l4_ipc_return(task->utcb_address);
/* A task is asking for someone else's utcb */
@@ -64,8 +63,6 @@ int task_send_utcb_address(l4id_t sender, l4id_t taskid)
* none allocated so far, requester gets 0. We don't
* allocate one here.
*/
printf("%s: Returning 0x%x\n", __FUNCTION__,
task->utcb_address);
return l4_ipc_return(task->utcb_address);
}
}