Removed zombie test and any verbose printks

This commit is contained in:
Bahadir Balban
2009-10-19 19:45:04 +03:00
parent 62c4249d95
commit 655e135300
2 changed files with 8 additions and 11 deletions

View File

@@ -140,6 +140,14 @@ void handle_requests(void)
break;
}
case L4_IPC_TAG_EXIT: {
/* Zombie test for kernel
struct task_ids ids;
l4_getid(&ids);
printf("\n%s: Destroying self (%d), along with any tasks.\n", __TASKNAME__, self_tid());
l4_thread_control(THREAD_DESTROY, &ids);
*/
/* An exiting task has no receive phase */
sys_exit(sender, (int)mr[0]);
return;
@@ -187,17 +195,11 @@ void handle_requests(void)
void main(void)
{
struct task_ids ids;
l4_getid(&ids);
printf("\n%s: Started with thread id %d\n", __TASKNAME__, self_tid());
init();
printf("\n%s: Destroying self (%d), along with any tasks.\n", __TASKNAME__, self_tid());
l4_thread_control(THREAD_DESTROY, &ids);
printf("%s: Memory/Process manager initialized. Listening requests.\n", __TASKNAME__);
while (1) {
handle_requests();