~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to kernel/generic/src/proc/task.c

MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
void task_done(void)
125
125
{
126
126
        size_t tasks_left;
 
127
 
 
128
        if (ipc_phone_0) {
 
129
                task_t *task_0 = ipc_phone_0->task;
 
130
                ipc_phone_0 = NULL;
 
131
                /*
 
132
                 * The first task is held by kinit(), we need to release it or
 
133
                 * it will never finish cleanup.
 
134
                 */
 
135
                task_release(task_0);
 
136
        }
127
137
        
128
138
        /* Repeat until there are any tasks except TASK */
129
139
        do {