Changes in kernel/generic/src/ipc/ipc.c [07d4271:fc0de8c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc.c
r07d4271 rfc0de8c 54 54 #include <arch.h> 55 55 #include <proc/task.h> 56 #include <mem w.h>56 #include <mem.h> 57 57 #include <stdio.h> 58 58 #include <console/console.h> … … 326 326 irq_spinlock_unlock(&callerbox->lock, true); 327 327 328 waitq_wake _one(&callerbox->wq);328 waitq_wakeup(&callerbox->wq, WAKEUP_FIRST); 329 329 } 330 330 … … 416 416 irq_spinlock_unlock(&box->lock, true); 417 417 418 waitq_wake _one(&box->wq);418 waitq_wakeup(&box->wq, WAKEUP_FIRST); 419 419 } 420 420 … … 555 555 errno_t rc; 556 556 557 rc = _waitq_sleep_timeout(&box->wq, usec, flags);557 rc = waitq_sleep_timeout(&box->wq, usec, flags, NULL); 558 558 if (rc != EOK) 559 559 return rc; … … 967 967 void ipc_print_task(task_id_t taskid) 968 968 { 969 irq_spinlock_lock(&tasks_lock, true); 969 970 task_t *task = task_find_by_id(taskid); 970 if (!task) 971 if (!task) { 972 irq_spinlock_unlock(&tasks_lock, true); 971 973 return; 974 } 975 task_hold(task); 976 irq_spinlock_unlock(&tasks_lock, true); 972 977 973 978 printf("[phone cap] [calls] [state\n");
Note:
See TracChangeset
for help on using the changeset viewer.