Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    r07d4271 rfc0de8c  
    5454#include <arch.h>
    5555#include <proc/task.h>
    56 #include <memw.h>
     56#include <mem.h>
    5757#include <stdio.h>
    5858#include <console/console.h>
     
    326326                irq_spinlock_unlock(&callerbox->lock, true);
    327327
    328         waitq_wake_one(&callerbox->wq);
     328        waitq_wakeup(&callerbox->wq, WAKEUP_FIRST);
    329329}
    330330
     
    416416        irq_spinlock_unlock(&box->lock, true);
    417417
    418         waitq_wake_one(&box->wq);
     418        waitq_wakeup(&box->wq, WAKEUP_FIRST);
    419419}
    420420
     
    555555        errno_t rc;
    556556
    557         rc = _waitq_sleep_timeout(&box->wq, usec, flags);
     557        rc = waitq_sleep_timeout(&box->wq, usec, flags, NULL);
    558558        if (rc != EOK)
    559559                return rc;
     
    967967void ipc_print_task(task_id_t taskid)
    968968{
     969        irq_spinlock_lock(&tasks_lock, true);
    969970        task_t *task = task_find_by_id(taskid);
    970         if (!task)
     971        if (!task) {
     972                irq_spinlock_unlock(&tasks_lock, true);
    971973                return;
     974        }
     975        task_hold(task);
     976        irq_spinlock_unlock(&tasks_lock, true);
    972977
    973978        printf("[phone cap] [calls] [state\n");
Note: See TracChangeset for help on using the changeset viewer.