source: mainline/kernel/generic/src/ipc/ipc.c@ c70ce74

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c70ce74 was c70ce74, checked in by Jakub Jermar <jakub@…>, 16 years ago

Allocate the answerbox for synchronous calls dynamically.

  • Property mode set to 100644
File size: 18.8 KB
Line 
1/*
2 * Copyright (c) 2006 Ondrej Palkovsky
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup genericipc
30 * @{
31 */
32/** @file
33 */
34
35/* Lock ordering
36 *
37 * First the answerbox, then the phone.
38 */
39
40#include <synch/synch.h>
41#include <synch/spinlock.h>
42#include <synch/mutex.h>
43#include <synch/waitq.h>
44#include <synch/synch.h>
45#include <ipc/ipc.h>
46#include <ipc/kbox.h>
47#include <ipc/event.h>
48#include <errno.h>
49#include <mm/slab.h>
50#include <arch.h>
51#include <proc/task.h>
52#include <memstr.h>
53#include <debug.h>
54#include <print.h>
55#include <console/console.h>
56#include <proc/thread.h>
57#include <arch/interrupt.h>
58#include <ipc/irq.h>
59
60/** Open channel that is assigned automatically to new tasks */
61answerbox_t *ipc_phone_0 = NULL;
62
63static slab_cache_t *ipc_call_slab;
64static slab_cache_t *ipc_answerbox_slab;
65
66/** Initialize a call structure.
67 *
68 * @param call Call structure to be initialized.
69 */
70static void _ipc_call_init(call_t *call)
71{
72 memsetb(call, sizeof(*call), 0);
73 call->callerbox = &TASK->answerbox;
74 call->sender = TASK;
75 call->buffer = NULL;
76}
77
78/** Allocate and initialize a call structure.
79 *
80 * The call is initialized, so that the reply will be directed to
81 * TASK->answerbox.
82 *
83 * @param flags Parameters for slab_alloc (e.g FRAME_ATOMIC).
84 *
85 * @return If flags permit it, return NULL, or initialized kernel
86 * call structure.
87 */
88call_t *ipc_call_alloc(int flags)
89{
90 call_t *call;
91
92 call = slab_alloc(ipc_call_slab, flags);
93 if (call)
94 _ipc_call_init(call);
95
96 return call;
97}
98
99/** Deallocate a call structure.
100 *
101 * @param call Call structure to be freed.
102 */
103void ipc_call_free(call_t *call)
104{
105 /* Check to see if we have data in the IPC_M_DATA_SEND buffer. */
106 if (call->buffer)
107 free(call->buffer);
108 slab_free(ipc_call_slab, call);
109}
110
111/** Initialize an answerbox structure.
112 *
113 * @param box Answerbox structure to be initialized.
114 * @param task Task to which the answerbox belongs.
115 */
116void ipc_answerbox_init(answerbox_t *box, task_t *task)
117{
118 spinlock_initialize(&box->lock, "ipc_box_lock");
119 spinlock_initialize(&box->irq_lock, "ipc_box_irqlock");
120 waitq_initialize(&box->wq);
121 list_initialize(&box->connected_phones);
122 list_initialize(&box->calls);
123 list_initialize(&box->dispatched_calls);
124 list_initialize(&box->answers);
125 list_initialize(&box->irq_notifs);
126 list_initialize(&box->irq_head);
127 box->task = task;
128}
129
130/** Connect a phone to an answerbox.
131 *
132 * @param phone Initialized phone structure.
133 * @param box Initialized answerbox structure.
134 */
135void ipc_phone_connect(phone_t *phone, answerbox_t *box)
136{
137 mutex_lock(&phone->lock);
138
139 phone->state = IPC_PHONE_CONNECTED;
140 phone->callee = box;
141
142 spinlock_lock(&box->lock);
143 list_append(&phone->link, &box->connected_phones);
144 spinlock_unlock(&box->lock);
145
146 mutex_unlock(&phone->lock);
147}
148
149/** Initialize a phone structure.
150 *
151 * @param phone Phone structure to be initialized.
152 */
153void ipc_phone_init(phone_t *phone)
154{
155 mutex_initialize(&phone->lock, MUTEX_PASSIVE);
156 phone->callee = NULL;
157 phone->state = IPC_PHONE_FREE;
158 atomic_set(&phone->active_calls, 0);
159}
160
161/** Helper function to facilitate synchronous calls.
162 *
163 * @param phone Destination kernel phone structure.
164 * @param request Call structure with request.
165 *
166 * @return EOK on success or EINTR if the sleep was interrupted.
167 */
168int ipc_call_sync(phone_t *phone, call_t *request)
169{
170 answerbox_t *sync_box;
171
172 sync_box = slab_alloc(ipc_answerbox_slab, 0);
173 ipc_answerbox_init(sync_box, TASK);
174
175 /* We will receive data in a special box. */
176 request->callerbox = sync_box;
177
178 ipc_call(phone, request);
179 if (!ipc_wait_for_call(sync_box, SYNCH_NO_TIMEOUT,
180 SYNCH_FLAGS_INTERRUPTIBLE)) {
181 /* The asnwerbox will be freed by someone else. */
182 return EINTR;
183 }
184 slab_free(ipc_answerbox_slab, sync_box);
185 return EOK;
186}
187
188/** Answer a message which was not dispatched and is not listed in any queue.
189 *
190 * @param call Call structure to be answered.
191 */
192static void _ipc_answer_free_call(call_t *call)
193{
194 answerbox_t *callerbox = call->callerbox;
195
196 call->flags |= IPC_CALL_ANSWERED;
197
198 if (call->flags & IPC_CALL_FORWARDED) {
199 if (call->caller_phone) {
200 /* Demasquerade the caller phone. */
201 call->data.phone = call->caller_phone;
202 }
203 }
204
205 spinlock_lock(&callerbox->lock);
206 list_append(&call->link, &callerbox->answers);
207 spinlock_unlock(&callerbox->lock);
208 waitq_wakeup(&callerbox->wq, WAKEUP_FIRST);
209}
210
211/** Answer a message which is in a callee queue.
212 *
213 * @param box Answerbox that is answering the message.
214 * @param call Modified request that is being sent back.
215 */
216void ipc_answer(answerbox_t *box, call_t *call)
217{
218 /* Remove from active box */
219 spinlock_lock(&box->lock);
220 list_remove(&call->link);
221 spinlock_unlock(&box->lock);
222 /* Send back answer */
223 _ipc_answer_free_call(call);
224}
225
226/** Simulate sending back a message.
227 *
228 * Most errors are better handled by forming a normal backward
229 * message and sending it as a normal answer.
230 *
231 * @param phone Phone structure the call should appear to come from.
232 * @param call Call structure to be answered.
233 * @param err Return value to be used for the answer.
234 */
235void ipc_backsend_err(phone_t *phone, call_t *call, unative_t err)
236{
237 call->data.phone = phone;
238 atomic_inc(&phone->active_calls);
239 IPC_SET_RETVAL(call->data, err);
240 _ipc_answer_free_call(call);
241}
242
243/** Unsafe unchecking version of ipc_call.
244 *
245 * @param phone Phone structure the call comes from.
246 * @param box Destination answerbox structure.
247 * @param call Call structure with request.
248 */
249static void _ipc_call(phone_t *phone, answerbox_t *box, call_t *call)
250{
251 if (!(call->flags & IPC_CALL_FORWARDED)) {
252 atomic_inc(&phone->active_calls);
253 call->data.phone = phone;
254 }
255
256 spinlock_lock(&box->lock);
257 list_append(&call->link, &box->calls);
258 spinlock_unlock(&box->lock);
259 waitq_wakeup(&box->wq, WAKEUP_FIRST);
260}
261
262/** Send an asynchronous request using a phone to an answerbox.
263 *
264 * @param phone Phone structure the call comes from and which is
265 * connected to the destination answerbox.
266 * @param call Call structure with request.
267 *
268 * @return Return 0 on success, ENOENT on error.
269 */
270int ipc_call(phone_t *phone, call_t *call)
271{
272 answerbox_t *box;
273
274 mutex_lock(&phone->lock);
275 if (phone->state != IPC_PHONE_CONNECTED) {
276 mutex_unlock(&phone->lock);
277 if (call->flags & IPC_CALL_FORWARDED) {
278 IPC_SET_RETVAL(call->data, EFORWARD);
279 _ipc_answer_free_call(call);
280 } else {
281 if (phone->state == IPC_PHONE_HUNGUP)
282 ipc_backsend_err(phone, call, EHANGUP);
283 else
284 ipc_backsend_err(phone, call, ENOENT);
285 }
286 return ENOENT;
287 }
288 box = phone->callee;
289 _ipc_call(phone, box, call);
290
291 mutex_unlock(&phone->lock);
292 return 0;
293}
294
295/** Disconnect phone from answerbox.
296 *
297 * This call leaves the phone in the HUNGUP state. The change to 'free' is done
298 * lazily later.
299 *
300 * @param phone Phone structure to be hung up.
301 *
302 * @return Return 0 if the phone is disconnected.
303 * Return -1 if the phone was already disconnected.
304 */
305int ipc_phone_hangup(phone_t *phone)
306{
307 answerbox_t *box;
308 call_t *call;
309
310 mutex_lock(&phone->lock);
311 if (phone->state == IPC_PHONE_FREE ||
312 phone->state == IPC_PHONE_HUNGUP ||
313 phone->state == IPC_PHONE_CONNECTING) {
314 mutex_unlock(&phone->lock);
315 return -1;
316 }
317 box = phone->callee;
318 if (phone->state != IPC_PHONE_SLAMMED) {
319 /* Remove myself from answerbox */
320 spinlock_lock(&box->lock);
321 list_remove(&phone->link);
322 spinlock_unlock(&box->lock);
323
324 call = ipc_call_alloc(0);
325 IPC_SET_METHOD(call->data, IPC_M_PHONE_HUNGUP);
326 call->flags |= IPC_CALL_DISCARD_ANSWER;
327 _ipc_call(phone, box, call);
328 }
329
330 phone->state = IPC_PHONE_HUNGUP;
331 mutex_unlock(&phone->lock);
332
333 return 0;
334}
335
336/** Forwards call from one answerbox to another one.
337 *
338 * @param call Call structure to be redirected.
339 * @param newphone Phone structure to target answerbox.
340 * @param oldbox Old answerbox structure.
341 * @param mode Flags that specify mode of the forward operation.
342 *
343 * @return Return 0 if forwarding succeeded or an error code if
344 * there was error.
345 *
346 * The return value serves only as an information for the forwarder,
347 * the original caller is notified automatically with EFORWARD.
348 */
349int ipc_forward(call_t *call, phone_t *newphone, answerbox_t *oldbox, int mode)
350{
351 spinlock_lock(&oldbox->lock);
352 list_remove(&call->link);
353 spinlock_unlock(&oldbox->lock);
354
355 if (mode & IPC_FF_ROUTE_FROM_ME) {
356 if (!call->caller_phone)
357 call->caller_phone = call->data.phone;
358 call->data.phone = newphone;
359 }
360
361 return ipc_call(newphone, call);
362}
363
364
365/** Wait for a phone call.
366 *
367 * @param box Answerbox expecting the call.
368 * @param usec Timeout in microseconds. See documentation for
369 * waitq_sleep_timeout() for decription of its special
370 * meaning.
371 * @param flags Select mode of sleep operation. See documentation for
372 * waitq_sleep_timeout() for description of its special
373 * meaning.
374 * @return Recived call structure or NULL.
375 *
376 * To distinguish between a call and an answer, have a look at call->flags.
377 */
378call_t *ipc_wait_for_call(answerbox_t *box, uint32_t usec, int flags)
379{
380 call_t *request;
381 ipl_t ipl;
382 int rc;
383
384restart:
385 rc = waitq_sleep_timeout(&box->wq, usec, flags);
386 if (SYNCH_FAILED(rc))
387 return NULL;
388
389 spinlock_lock(&box->lock);
390 if (!list_empty(&box->irq_notifs)) {
391 ipl = interrupts_disable();
392 spinlock_lock(&box->irq_lock);
393
394 request = list_get_instance(box->irq_notifs.next, call_t, link);
395 list_remove(&request->link);
396
397 spinlock_unlock(&box->irq_lock);
398 interrupts_restore(ipl);
399 } else if (!list_empty(&box->answers)) {
400 /* Handle asynchronous answers */
401 request = list_get_instance(box->answers.next, call_t, link);
402 list_remove(&request->link);
403 atomic_dec(&request->data.phone->active_calls);
404 } else if (!list_empty(&box->calls)) {
405 /* Handle requests */
406 request = list_get_instance(box->calls.next, call_t, link);
407 list_remove(&request->link);
408 /* Append request to dispatch queue */
409 list_append(&request->link, &box->dispatched_calls);
410 } else {
411 /* This can happen regularly after ipc_cleanup */
412 spinlock_unlock(&box->lock);
413 goto restart;
414 }
415 spinlock_unlock(&box->lock);
416 return request;
417}
418
419/** Answer all calls from list with EHANGUP answer.
420 *
421 * @param lst Head of the list to be cleaned up.
422 */
423void ipc_cleanup_call_list(link_t *lst)
424{
425 call_t *call;
426
427 while (!list_empty(lst)) {
428 call = list_get_instance(lst->next, call_t, link);
429 if (call->buffer)
430 free(call->buffer);
431 list_remove(&call->link);
432
433 IPC_SET_RETVAL(call->data, EHANGUP);
434 _ipc_answer_free_call(call);
435 }
436}
437
438/** Disconnects all phones connected to an answerbox.
439 *
440 * @param box Answerbox to disconnect phones from.
441 * @param notify_box If true, the answerbox will get a hangup message for
442 * each disconnected phone.
443 */
444void ipc_answerbox_slam_phones(answerbox_t *box, bool notify_box)
445{
446 phone_t *phone;
447 DEADLOCK_PROBE_INIT(p_phonelck);
448 ipl_t ipl;
449 call_t *call;
450
451 call = notify_box ? ipc_call_alloc(0) : NULL;
452
453 /* Disconnect all phones connected to our answerbox */
454restart_phones:
455 ipl = interrupts_disable();
456 spinlock_lock(&box->lock);
457 while (!list_empty(&box->connected_phones)) {
458 phone = list_get_instance(box->connected_phones.next,
459 phone_t, link);
460 if (SYNCH_FAILED(mutex_trylock(&phone->lock))) {
461 spinlock_unlock(&box->lock);
462 interrupts_restore(ipl);
463 DEADLOCK_PROBE(p_phonelck, DEADLOCK_THRESHOLD);
464 goto restart_phones;
465 }
466
467 /* Disconnect phone */
468 ASSERT(phone->state == IPC_PHONE_CONNECTED);
469
470 list_remove(&phone->link);
471 phone->state = IPC_PHONE_SLAMMED;
472
473 if (notify_box) {
474 mutex_unlock(&phone->lock);
475 spinlock_unlock(&box->lock);
476 interrupts_restore(ipl);
477
478 /*
479 * Send one message to the answerbox for each
480 * phone. Used to make sure the kbox thread
481 * wakes up after the last phone has been
482 * disconnected.
483 */
484 IPC_SET_METHOD(call->data, IPC_M_PHONE_HUNGUP);
485 call->flags |= IPC_CALL_DISCARD_ANSWER;
486 _ipc_call(phone, box, call);
487
488 /* Allocate another call in advance */
489 call = ipc_call_alloc(0);
490
491 /* Must start again */
492 goto restart_phones;
493 }
494
495 mutex_unlock(&phone->lock);
496 }
497
498 spinlock_unlock(&box->lock);
499 interrupts_restore(ipl);
500
501 /* Free unused call */
502 if (call)
503 ipc_call_free(call);
504}
505
506/** Cleans up all IPC communication of the current task.
507 *
508 * Note: ipc_hangup sets returning answerbox to TASK->answerbox, you
509 * have to change it as well if you want to cleanup other tasks than TASK.
510 */
511void ipc_cleanup(void)
512{
513 int i;
514 call_t *call;
515
516 /* Disconnect all our phones ('ipc_phone_hangup') */
517 for (i = 0; i < IPC_MAX_PHONES; i++)
518 ipc_phone_hangup(&TASK->phones[i]);
519
520 /* Unsubscribe from any event notifications. */
521 event_cleanup_answerbox(&TASK->answerbox);
522
523 /* Disconnect all connected irqs */
524 ipc_irq_cleanup(&TASK->answerbox);
525
526 /* Disconnect all phones connected to our regular answerbox */
527 ipc_answerbox_slam_phones(&TASK->answerbox, false);
528
529#ifdef CONFIG_UDEBUG
530 /* Clean up kbox thread and communications */
531 ipc_kbox_cleanup();
532#endif
533
534 /* Answer all messages in 'calls' and 'dispatched_calls' queues */
535 spinlock_lock(&TASK->answerbox.lock);
536 ipc_cleanup_call_list(&TASK->answerbox.dispatched_calls);
537 ipc_cleanup_call_list(&TASK->answerbox.calls);
538 spinlock_unlock(&TASK->answerbox.lock);
539
540 /* Wait for all async answers to arrive */
541 while (1) {
542 /* Go through all phones, until all are FREE... */
543 /* Locking not needed, no one else should modify
544 * it, when we are in cleanup */
545 for (i = 0; i < IPC_MAX_PHONES; i++) {
546 if (TASK->phones[i].state == IPC_PHONE_HUNGUP &&
547 atomic_get(&TASK->phones[i].active_calls) == 0)
548 TASK->phones[i].state = IPC_PHONE_FREE;
549
550 /* Just for sure, we might have had some
551 * IPC_PHONE_CONNECTING phones */
552 if (TASK->phones[i].state == IPC_PHONE_CONNECTED)
553 ipc_phone_hangup(&TASK->phones[i]);
554 /* If the hangup succeeded, it has sent a HANGUP
555 * message, the IPC is now in HUNGUP state, we
556 * wait for the reply to come */
557
558 if (TASK->phones[i].state != IPC_PHONE_FREE)
559 break;
560 }
561 /* Voila, got into cleanup */
562 if (i == IPC_MAX_PHONES)
563 break;
564
565 call = ipc_wait_for_call(&TASK->answerbox, SYNCH_NO_TIMEOUT,
566 SYNCH_FLAGS_NONE);
567 ASSERT((call->flags & IPC_CALL_ANSWERED) ||
568 (call->flags & IPC_CALL_NOTIF));
569
570 /*
571 * Record the receipt of this call in the current task's counter
572 * of active calls. IPC_M_PHONE_HUNGUP calls do not contribute
573 * to this counter so do not record answers to them either.
574 */
575 if (!(call->flags & IPC_CALL_DISCARD_ANSWER))
576 atomic_dec(&TASK->active_calls);
577 ipc_call_free(call);
578 }
579}
580
581
582/** Initilize IPC subsystem */
583void ipc_init(void)
584{
585 ipc_call_slab = slab_cache_create("ipc_call", sizeof(call_t), 0, NULL,
586 NULL, 0);
587 ipc_answerbox_slab = slab_cache_create("ipc_answerbox",
588 sizeof(answerbox_t), 0, NULL, NULL, 0);
589}
590
591
592/** List answerbox contents.
593 *
594 * @param taskid Task ID.
595 */
596void ipc_print_task(task_id_t taskid)
597{
598 task_t *task;
599 int i;
600 call_t *call;
601 link_t *tmp;
602
603 spinlock_lock(&tasks_lock);
604 task = task_find_by_id(taskid);
605 if (task)
606 spinlock_lock(&task->lock);
607 spinlock_unlock(&tasks_lock);
608 if (!task)
609 return;
610
611 /* Print opened phones & details */
612 printf("PHONE:\n");
613 for (i = 0; i < IPC_MAX_PHONES; i++) {
614 if (SYNCH_FAILED(mutex_trylock(&task->phones[i].lock))) {
615 printf("%d: mutex busy\n", i);
616 continue;
617 }
618 if (task->phones[i].state != IPC_PHONE_FREE) {
619 printf("%d: ", i);
620 switch (task->phones[i].state) {
621 case IPC_PHONE_CONNECTING:
622 printf("connecting ");
623 break;
624 case IPC_PHONE_CONNECTED:
625 printf("connected to: %p ",
626 task->phones[i].callee);
627 break;
628 case IPC_PHONE_SLAMMED:
629 printf("slammed by: %p ",
630 task->phones[i].callee);
631 break;
632 case IPC_PHONE_HUNGUP:
633 printf("hung up - was: %p ",
634 task->phones[i].callee);
635 break;
636 default:
637 break;
638 }
639 printf("active: %ld\n",
640 atomic_get(&task->phones[i].active_calls));
641 }
642 mutex_unlock(&task->phones[i].lock);
643 }
644
645
646 /* Print answerbox - calls */
647 spinlock_lock(&task->answerbox.lock);
648 printf("ABOX - CALLS:\n");
649 for (tmp = task->answerbox.calls.next; tmp != &task->answerbox.calls;
650 tmp = tmp->next) {
651 call = list_get_instance(tmp, call_t, link);
652 printf("Callid: %p Srctask:%" PRIu64 " M:%" PRIun
653 " A1:%" PRIun " A2:%" PRIun " A3:%" PRIun
654 " A4:%" PRIun " A5:%" PRIun " Flags:%x\n", call,
655 call->sender->taskid,
656 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
657 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data),
658 IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data),
659 call->flags);
660 }
661 /* Print answerbox - calls */
662 printf("ABOX - DISPATCHED CALLS:\n");
663 for (tmp = task->answerbox.dispatched_calls.next;
664 tmp != &task->answerbox.dispatched_calls;
665 tmp = tmp->next) {
666 call = list_get_instance(tmp, call_t, link);
667 printf("Callid: %p Srctask:%" PRIu64 " M:%" PRIun
668 " A1:%" PRIun " A2:%" PRIun " A3:%" PRIun
669 " A4:%" PRIun " A5:%" PRIun " Flags:%x\n", call,
670 call->sender->taskid,
671 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
672 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data),
673 IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data),
674 call->flags);
675 }
676 /* Print answerbox - calls */
677 printf("ABOX - ANSWERS:\n");
678 for (tmp = task->answerbox.answers.next;
679 tmp != &task->answerbox.answers;
680 tmp = tmp->next) {
681 call = list_get_instance(tmp, call_t, link);
682 printf("Callid:%p M:%" PRIun " A1:%" PRIun " A2:%" PRIun
683 " A3:%" PRIun " A4:%" PRIun " A5:%" PRIun " Flags:%x\n",
684 call, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
685 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data),
686 IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data),
687 call->flags);
688 }
689
690 spinlock_unlock(&task->answerbox.lock);
691 spinlock_unlock(&task->lock);
692}
693
694/** @}
695 */
Note: See TracBrowser for help on using the repository browser.