clone() call working. Tested exit(), clone() and fork() mixture running about 22 threads, processes.

This commit is contained in:
Bahadir Balban
2008-11-10 17:58:33 +02:00
parent 66388a0fc3
commit 44c34026b2
8 changed files with 68 additions and 52 deletions

View File

@@ -126,6 +126,10 @@ void handle_requests(void)
ret = sys_fork(sender);
break;
}
case L4_IPC_TAG_CLONE: {
ret = sys_clone(sender, (void *)mr[0], (unsigned int)mr[1]);
break;
}
case L4_IPC_TAG_EXIT: {
/* An exiting task has no receive phase */
sys_exit(sender, (int)mr[0]);