mirror of
https://github.com/drasko/codezero.git
synced 2026-03-04 03:23:16 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user