2 * Copyright (c) 2006 Ondrej Palkovsky
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
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.
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.
29 /** @addtogroup genericipc
39 #include <abi/ipc/methods.h>
40 #include <ipc/sysipc.h>
41 #include <ipc/sysipc_ops.h>
42 #include <ipc/sysipc_priv.h>
44 #include <ipc/ipcrsc.h>
45 #include <ipc/event.h>
47 #include <synch/waitq.h>
48 #include <arch/interrupt.h>
49 #include <syscall/copy.h>
50 #include <security/perm.h>
51 #include <console/console.h>
55 #define STRUCT_TO_USPACE(dst, src) copy_to_uspace((dst), (src), sizeof(*(src)))
57 /** Decide if the interface and method is a system method.
59 * @param imethod Interface and method to be decided.
61 * @return True if the interface and method is a system
62 * interface and method.
65 static inline bool method_is_system(sysarg_t imethod
)
67 if (imethod
<= IPC_M_LAST_SYSTEM
)
73 /** Decide if the message with this interface and method is forwardable.
75 * Some system messages may be forwarded, for some of them
78 * @param imethod Interface and method to be decided.
80 * @return True if the interface and method is forwardable.
83 static inline bool method_is_forwardable(sysarg_t imethod
)
86 case IPC_M_CONNECTION_CLONE
:
87 case IPC_M_CLONE_ESTABLISH
:
88 case IPC_M_PHONE_HUNGUP
:
89 /* This message is meant only for the original recipient. */
96 /** Decide if the message with this interface and method is immutable on forward.
98 * Some system messages may be forwarded but their content cannot be altered.
100 * @param imethod Interface and method to be decided.
102 * @return True if the interface and method is immutable on forward.
105 static inline bool method_is_immutable(sysarg_t imethod
)
109 case IPC_M_SHARE_OUT
:
111 case IPC_M_DATA_WRITE
:
112 case IPC_M_DATA_READ
:
113 case IPC_M_STATE_CHANGE_AUTHORIZE
:
121 /***********************************************************************
122 * Functions that preprocess answer before sending it to the recepient.
123 ***********************************************************************/
125 /** Decide if the caller (e.g. ipc_answer()) should save the old call contents
126 * for answer_preprocess().
128 * @param call Call structure to be decided.
130 * @return true if the old call contents should be saved.
133 static inline bool answer_need_old(call_t
*call
)
135 switch (IPC_GET_IMETHOD(call
->data
)) {
136 case IPC_M_CONNECTION_CLONE
:
137 case IPC_M_CLONE_ESTABLISH
:
138 case IPC_M_CONNECT_TO_ME
:
139 case IPC_M_CONNECT_ME_TO
:
141 case IPC_M_SHARE_OUT
:
143 case IPC_M_DATA_WRITE
:
144 case IPC_M_DATA_READ
:
145 case IPC_M_STATE_CHANGE_AUTHORIZE
:
152 /** Interpret process answer as control information.
154 * This function is called directly after sys_ipc_answer().
156 * @param answer Call structure with the answer.
157 * @param olddata Saved data of the request.
159 * @return Return EOK on success or a negative error code.
162 int answer_preprocess(call_t
*answer
, ipc_data_t
*olddata
)
166 spinlock_lock(&answer
->forget_lock
);
167 if (answer
->forget
) {
169 * This is a forgotten call and answer->sender is not valid.
171 spinlock_unlock(&answer
->forget_lock
);
173 SYSIPC_OP(answer_cleanup
, answer
, olddata
);
176 ASSERT(answer
->active
);
179 * Mark the call as inactive to prevent _ipc_answer_free_call()
180 * from attempting to remove the call from the active list
183 answer
->active
= false;
186 * Remove the call from the sender's active call list.
187 * We enforce this locking order so that any potential
188 * concurrently executing forget operation is forced to
189 * release its active_calls_lock and lose the race to
190 * forget this soon to be answered call.
192 spinlock_lock(&answer
->sender
->active_calls_lock
);
193 list_remove(&answer
->ta_link
);
194 spinlock_unlock(&answer
->sender
->active_calls_lock
);
196 spinlock_unlock(&answer
->forget_lock
);
198 if ((native_t
) IPC_GET_RETVAL(answer
->data
) == EHANGUP
) {
199 phone_t
*phone
= answer
->caller_phone
;
200 mutex_lock(&phone
->lock
);
201 if (phone
->state
== IPC_PHONE_CONNECTED
) {
202 irq_spinlock_lock(&phone
->callee
->lock
, true);
203 list_remove(&phone
->link
);
204 phone
->state
= IPC_PHONE_SLAMMED
;
205 irq_spinlock_unlock(&phone
->callee
->lock
, true);
207 mutex_unlock(&phone
->lock
);
213 return SYSIPC_OP(answer_preprocess
, answer
, olddata
);
216 /** Called before the request is sent.
218 * @param call Call structure with the request.
219 * @param phone Phone that the call will be sent through.
221 * @return Return 0 on success, ELIMIT or EPERM on error.
224 static int request_preprocess(call_t
*call
, phone_t
*phone
)
226 call
->request_method
= IPC_GET_IMETHOD(call
->data
);
227 return SYSIPC_OP(request_preprocess
, call
, phone
);
230 /*******************************************************************************
231 * Functions called to process received call/answer before passing it to uspace.
232 *******************************************************************************/
234 /** Do basic kernel processing of received call answer.
236 * @param call Call structure with the answer.
239 static void process_answer(call_t
*call
)
241 if (((native_t
) IPC_GET_RETVAL(call
->data
) == EHANGUP
) &&
242 (call
->flags
& IPC_CALL_FORWARDED
))
243 IPC_SET_RETVAL(call
->data
, EFORWARD
);
245 SYSIPC_OP(answer_process
, call
);
249 /** Do basic kernel processing of received call request.
251 * @param box Destination answerbox structure.
252 * @param call Call structure with the request.
254 * @return 0 if the call should be passed to userspace.
255 * @return -1 if the call should be ignored.
258 static int process_request(answerbox_t
*box
, call_t
*call
)
260 return SYSIPC_OP(request_process
, call
, box
);
263 /** Make a call over IPC and wait for reply.
265 * @param phoneid Phone handle for the call.
266 * @param data[inout] Structure with request/reply data.
267 * @param priv Value to be stored in call->priv.
269 * @return EOK on success.
270 * @return ENOENT if there is no such phone handle.
273 int ipc_req_internal(int phoneid
, ipc_data_t
*data
, sysarg_t priv
)
276 if (phone_get(phoneid
, &phone
) != EOK
)
279 call_t
*call
= ipc_call_alloc(0);
281 memcpy(call
->data
.args
, data
->args
, sizeof(data
->args
));
283 int rc
= request_preprocess(call
, phone
);
286 udebug_stoppable_begin();
290 rc
= ipc_call_sync(phone
, call
);
291 spinlock_lock(&call
->forget_lock
);
292 bool forgotten
= call
->forget
;
293 spinlock_unlock(&call
->forget_lock
);
294 ipc_call_release(call
);
297 udebug_stoppable_end();
303 * There was an error, but it did not result
304 * in the call being forgotten. In fact, the
305 * call was not even sent. We are still
306 * its owners and are responsible for its
312 * The call was forgotten and it changed hands.
313 * We are no longer expected to free it.
320 process_answer(call
);
322 IPC_SET_RETVAL(call
->data
, rc
);
324 memcpy(data
->args
, call
->data
.args
, sizeof(data
->args
));
330 /** Check that the task did not exceed the allowed limit of asynchronous calls
333 * @param phone Phone to check the limit against.
335 * @return 0 if limit not reached or -1 if limit exceeded.
338 static int check_call_limit(phone_t
*phone
)
340 if (atomic_get(&phone
->active_calls
) >= IPC_MAX_ASYNC_CALLS
)
346 /** Make a fast asynchronous call over IPC.
348 * This function can only handle four arguments of payload, but is faster than
349 * the generic function sys_ipc_call_async_slow().
351 * @param phoneid Phone handle for the call.
352 * @param imethod Interface and method of the call.
353 * @param arg1 Service-defined payload argument.
354 * @param arg2 Service-defined payload argument.
355 * @param arg3 Service-defined payload argument.
356 * @param arg4 Service-defined payload argument.
358 * @return Call hash on success.
359 * @return IPC_CALLRET_FATAL in case of a fatal error.
360 * @return IPC_CALLRET_TEMPORARY if there are too many pending
361 * asynchronous requests; answers should be handled first.
364 sysarg_t
sys_ipc_call_async_fast(sysarg_t phoneid
, sysarg_t imethod
,
365 sysarg_t arg1
, sysarg_t arg2
, sysarg_t arg3
, sysarg_t arg4
)
368 if (phone_get(phoneid
, &phone
) != EOK
)
369 return IPC_CALLRET_FATAL
;
371 if (check_call_limit(phone
))
372 return IPC_CALLRET_TEMPORARY
;
374 call_t
*call
= ipc_call_alloc(0);
375 IPC_SET_IMETHOD(call
->data
, imethod
);
376 IPC_SET_ARG1(call
->data
, arg1
);
377 IPC_SET_ARG2(call
->data
, arg2
);
378 IPC_SET_ARG3(call
->data
, arg3
);
379 IPC_SET_ARG4(call
->data
, arg4
);
382 * To achieve deterministic behavior, zero out arguments that are beyond
383 * the limits of the fast version.
385 IPC_SET_ARG5(call
->data
, 0);
387 int res
= request_preprocess(call
, phone
);
390 ipc_call(phone
, call
);
392 ipc_backsend_err(phone
, call
, res
);
394 return (sysarg_t
) call
;
397 /** Make an asynchronous IPC call allowing to transmit the entire payload.
399 * @param phoneid Phone handle for the call.
400 * @param data Userspace address of call data with the request.
402 * @return See sys_ipc_call_async_fast().
405 sysarg_t
sys_ipc_call_async_slow(sysarg_t phoneid
, ipc_data_t
*data
)
408 if (phone_get(phoneid
, &phone
) != EOK
)
409 return IPC_CALLRET_FATAL
;
411 if (check_call_limit(phone
))
412 return IPC_CALLRET_TEMPORARY
;
414 call_t
*call
= ipc_call_alloc(0);
415 int rc
= copy_from_uspace(&call
->data
.args
, &data
->args
,
416 sizeof(call
->data
.args
));
419 return (sysarg_t
) rc
;
422 int res
= request_preprocess(call
, phone
);
425 ipc_call(phone
, call
);
427 ipc_backsend_err(phone
, call
, res
);
429 return (sysarg_t
) call
;
432 /** Forward a received call to another destination
434 * Common code for both the fast and the slow version.
436 * @param callid Hash of the call to forward.
437 * @param phoneid Phone handle to use for forwarding.
438 * @param imethod New interface and method to use for the forwarded call.
439 * @param arg1 New value of the first argument for the forwarded call.
440 * @param arg2 New value of the second argument for the forwarded call.
441 * @param arg3 New value of the third argument for the forwarded call.
442 * @param arg4 New value of the fourth argument for the forwarded call.
443 * @param arg5 New value of the fifth argument for the forwarded call.
444 * @param mode Flags that specify mode of the forward operation.
445 * @param slow If true, arg3, arg4 and arg5 are considered. Otherwise
446 * the function considers only the fast version arguments:
447 * i.e. arg1 and arg2.
449 * @return 0 on succes, otherwise an error code.
451 * Warning: Make sure that ARG5 is not rewritten for certain system IPC
454 static sysarg_t
sys_ipc_forward_common(sysarg_t callid
, sysarg_t phoneid
,
455 sysarg_t imethod
, sysarg_t arg1
, sysarg_t arg2
, sysarg_t arg3
,
456 sysarg_t arg4
, sysarg_t arg5
, unsigned int mode
, bool slow
)
458 call_t
*call
= get_call(callid
);
463 bool need_old
= answer_need_old(call
);
467 bool after_forward
= false;
471 if (phone_get(phoneid
, &phone
) != EOK
) {
476 if (!method_is_forwardable(IPC_GET_IMETHOD(call
->data
))) {
481 call
->flags
|= IPC_CALL_FORWARDED
;
484 * User space is not allowed to change interface and method of system
485 * methods on forward, allow changing ARG1, ARG2, ARG3 and ARG4 by
486 * means of imethod, arg1, arg2 and arg3.
487 * If the interface and method is immutable, don't change anything.
489 if (!method_is_immutable(IPC_GET_IMETHOD(call
->data
))) {
490 if (method_is_system(IPC_GET_IMETHOD(call
->data
))) {
491 if (IPC_GET_IMETHOD(call
->data
) == IPC_M_CONNECT_TO_ME
)
492 phone_dealloc(IPC_GET_ARG5(call
->data
));
494 IPC_SET_ARG1(call
->data
, imethod
);
495 IPC_SET_ARG2(call
->data
, arg1
);
496 IPC_SET_ARG3(call
->data
, arg2
);
499 IPC_SET_ARG4(call
->data
, arg3
);
502 * For system methods we deliberately don't
506 IPC_SET_IMETHOD(call
->data
, imethod
);
507 IPC_SET_ARG1(call
->data
, arg1
);
508 IPC_SET_ARG2(call
->data
, arg2
);
510 IPC_SET_ARG3(call
->data
, arg3
);
511 IPC_SET_ARG4(call
->data
, arg4
);
512 IPC_SET_ARG5(call
->data
, arg5
);
517 rc
= ipc_forward(call
, phone
, &TASK
->answerbox
, mode
);
519 after_forward
= true;
526 IPC_SET_RETVAL(call
->data
, EFORWARD
);
527 (void) answer_preprocess(call
, need_old
? &old
: NULL
);
529 _ipc_answer_free_call(call
, false);
531 ipc_answer(&TASK
->answerbox
, call
);
536 /** Forward a received call to another destination - fast version.
538 * In case the original interface and method is a system method, ARG1, ARG2
539 * and ARG3 are overwritten in the forwarded message with the new method and
540 * the new arg1 and arg2, respectively. Otherwise the IMETHOD, ARG1 and ARG2
541 * are rewritten with the new interface and method, arg1 and arg2, respectively.
542 * Also note there is a set of immutable methods, for which the new method and
543 * arguments are not set and these values are ignored.
545 * @param callid Hash of the call to forward.
546 * @param phoneid Phone handle to use for forwarding.
547 * @param imethod New interface and method to use for the forwarded call.
548 * @param arg1 New value of the first argument for the forwarded call.
549 * @param arg2 New value of the second argument for the forwarded call.
550 * @param mode Flags that specify mode of the forward operation.
552 * @return 0 on succes, otherwise an error code.
555 sysarg_t
sys_ipc_forward_fast(sysarg_t callid
, sysarg_t phoneid
,
556 sysarg_t imethod
, sysarg_t arg1
, sysarg_t arg2
, unsigned int mode
)
558 return sys_ipc_forward_common(callid
, phoneid
, imethod
, arg1
, arg2
, 0, 0,
562 /** Forward a received call to another destination - slow version.
564 * This function is the slow verision of the sys_ipc_forward_fast interface.
565 * It can copy all five new arguments and the new interface and method from
566 * the userspace. It naturally extends the functionality of the fast version.
567 * For system methods, it additionally stores the new value of arg3 to ARG4.
568 * For non-system methods, it additionally stores the new value of arg3, arg4
569 * and arg5, respectively, to ARG3, ARG4 and ARG5, respectively.
571 * @param callid Hash of the call to forward.
572 * @param phoneid Phone handle to use for forwarding.
573 * @param data Userspace address of the new IPC data.
574 * @param mode Flags that specify mode of the forward operation.
576 * @return 0 on succes, otherwise an error code.
579 sysarg_t
sys_ipc_forward_slow(sysarg_t callid
, sysarg_t phoneid
,
580 ipc_data_t
*data
, unsigned int mode
)
583 int rc
= copy_from_uspace(&newdata
.args
, &data
->args
,
584 sizeof(newdata
.args
));
586 return (sysarg_t
) rc
;
588 return sys_ipc_forward_common(callid
, phoneid
,
589 IPC_GET_IMETHOD(newdata
), IPC_GET_ARG1(newdata
),
590 IPC_GET_ARG2(newdata
), IPC_GET_ARG3(newdata
),
591 IPC_GET_ARG4(newdata
), IPC_GET_ARG5(newdata
), mode
, true);
594 /** Answer an IPC call - fast version.
596 * This function can handle only two return arguments of payload, but is faster
597 * than the generic sys_ipc_answer().
599 * @param callid Hash of the call to be answered.
600 * @param retval Return value of the answer.
601 * @param arg1 Service-defined return value.
602 * @param arg2 Service-defined return value.
603 * @param arg3 Service-defined return value.
604 * @param arg4 Service-defined return value.
606 * @return 0 on success, otherwise an error code.
609 sysarg_t
sys_ipc_answer_fast(sysarg_t callid
, sysarg_t retval
,
610 sysarg_t arg1
, sysarg_t arg2
, sysarg_t arg3
, sysarg_t arg4
)
612 /* Do not answer notification callids */
613 if (callid
& IPC_CALLID_NOTIFICATION
)
616 call_t
*call
= get_call(callid
);
620 ipc_data_t saved_data
;
623 if (answer_need_old(call
)) {
624 memcpy(&saved_data
, &call
->data
, sizeof(call
->data
));
629 IPC_SET_RETVAL(call
->data
, retval
);
630 IPC_SET_ARG1(call
->data
, arg1
);
631 IPC_SET_ARG2(call
->data
, arg2
);
632 IPC_SET_ARG3(call
->data
, arg3
);
633 IPC_SET_ARG4(call
->data
, arg4
);
636 * To achieve deterministic behavior, zero out arguments that are beyond
637 * the limits of the fast version.
639 IPC_SET_ARG5(call
->data
, 0);
640 int rc
= answer_preprocess(call
, saved
? &saved_data
: NULL
);
642 ipc_answer(&TASK
->answerbox
, call
);
646 /** Answer an IPC call.
648 * @param callid Hash of the call to be answered.
649 * @param data Userspace address of call data with the answer.
651 * @return 0 on success, otherwise an error code.
654 sysarg_t
sys_ipc_answer_slow(sysarg_t callid
, ipc_data_t
*data
)
656 /* Do not answer notification callids */
657 if (callid
& IPC_CALLID_NOTIFICATION
)
660 call_t
*call
= get_call(callid
);
664 ipc_data_t saved_data
;
667 if (answer_need_old(call
)) {
668 memcpy(&saved_data
, &call
->data
, sizeof(call
->data
));
673 int rc
= copy_from_uspace(&call
->data
.args
, &data
->args
,
674 sizeof(call
->data
.args
));
678 rc
= answer_preprocess(call
, saved
? &saved_data
: NULL
);
680 ipc_answer(&TASK
->answerbox
, call
);
686 * @param Phone handle of the phone to be hung up.
688 * @return 0 on success or an error code.
691 sysarg_t
sys_ipc_hangup(sysarg_t phoneid
)
695 if (phone_get(phoneid
, &phone
) != EOK
)
698 if (ipc_phone_hangup(phone
))
704 /** Wait for an incoming IPC call or an answer.
706 * @param calldata Pointer to buffer where the call/answer data is stored.
707 * @param usec Timeout. See waitq_sleep_timeout() for explanation.
708 * @param flags Select mode of sleep operation. See waitq_sleep_timeout()
711 * @return Hash of the call.
712 * If IPC_CALLID_NOTIFICATION bit is set in the hash, the
713 * call is a notification. IPC_CALLID_ANSWERED denotes an
717 sysarg_t
sys_ipc_wait_for_call(ipc_data_t
*calldata
, uint32_t usec
,
725 udebug_stoppable_begin();
728 call
= ipc_wait_for_call(&TASK
->answerbox
, usec
,
729 flags
| SYNCH_FLAGS_INTERRUPTIBLE
);
732 udebug_stoppable_end();
738 if (call
->flags
& IPC_CALL_NOTIF
) {
739 /* Set in_phone_hash to the interrupt counter */
740 call
->data
.phone
= (void *) call
->priv
;
742 STRUCT_TO_USPACE(calldata
, &call
->data
);
746 return ((sysarg_t
) call
) | IPC_CALLID_NOTIFICATION
;
749 if (call
->flags
& IPC_CALL_ANSWERED
) {
750 process_answer(call
);
752 if (call
->flags
& IPC_CALL_DISCARD_ANSWER
) {
757 STRUCT_TO_USPACE(&calldata
->args
, &call
->data
.args
);
760 return ((sysarg_t
) call
) | IPC_CALLID_ANSWERED
;
763 if (process_request(&TASK
->answerbox
, call
))
766 /* Include phone address('id') of the caller in the request,
767 * copy whole call->data, not only call->data.args */
768 if (STRUCT_TO_USPACE(calldata
, &call
->data
)) {
770 * The callee will not receive this call and no one else has
771 * a chance to answer it. Reply with the EPARTY error code.
773 ipc_data_t saved_data
;
776 if (answer_need_old(call
)) {
777 memcpy(&saved_data
, &call
->data
, sizeof(call
->data
));
782 IPC_SET_RETVAL(call
->data
, EPARTY
);
783 (void) answer_preprocess(call
, saved
? &saved_data
: NULL
);
784 ipc_answer(&TASK
->answerbox
, call
);
788 return (sysarg_t
) call
;
791 /** Interrupt one thread from sys_ipc_wait_for_call().
794 sysarg_t
sys_ipc_poke(void)
796 waitq_unsleep(&TASK
->answerbox
.wq
);
800 /** Connect an IRQ handler to a task.
802 * @param inr IRQ number.
803 * @param devno Device number.
804 * @param imethod Interface and method to be associated with the notification.
805 * @param ucode Uspace pointer to the top-half pseudocode.
807 * @return EPERM or a return code returned by ipc_irq_subscribe().
810 sysarg_t
sys_ipc_irq_subscribe(inr_t inr
, devno_t devno
, sysarg_t imethod
,
813 if (!(perm_get(TASK
) & PERM_IRQ_REG
))
816 return ipc_irq_subscribe(&TASK
->answerbox
, inr
, devno
, imethod
, ucode
);
819 /** Disconnect an IRQ handler from a task.
821 * @param inr IRQ number.
822 * @param devno Device number.
824 * @return Zero on success or EPERM on error.
827 sysarg_t
sys_ipc_irq_unsubscribe(inr_t inr
, devno_t devno
)
829 if (!(perm_get(TASK
) & PERM_IRQ_REG
))
832 ipc_irq_unsubscribe(&TASK
->answerbox
, inr
, devno
);
839 /** Syscall connect to a task by ID (32 bits)
841 * @return Phone id on success, or negative error code.
844 sysarg_t
sys_ipc_connect_kbox(sysarg64_t
*uspace_taskid
)
848 int rc
= copy_from_uspace(&taskid
, uspace_taskid
, sizeof(sysarg64_t
));
850 return (sysarg_t
) rc
;
852 return ipc_connect_kbox((task_id_t
) taskid
);
854 return (sysarg_t
) ENOTSUP
;
858 #endif /* __32_BITS__ */
862 /** Syscall connect to a task by ID (64 bits)
864 * @return Phone id on success, or negative error code.
867 sysarg_t
sys_ipc_connect_kbox(sysarg_t taskid
)
870 return ipc_connect_kbox((task_id_t
) taskid
);
872 return (sysarg_t
) ENOTSUP
;
876 #endif /* __64_BITS__ */