Ignore:
File:
1 edited

Legend:

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

    r228e490 r97d17fe  
    4949#include <syscall/copy.h>
    5050#include <security/cap.h>
    51 #include <console/console.h>
    5251#include <mm/as.h>
    5352#include <print.h>
     
    6968 *
    7069 */
    71 static int phone_get(sysarg_t phoneid, phone_t **phone)
     70static int phone_get(unative_t phoneid, phone_t **phone)
    7271{
    7372        if (phoneid >= IPC_MAX_PHONES)
     
    7877}
    7978
    80 /** Decide if the interface and method is a system method.
    81  *
    82  * @param imethod Interface and method to be decided.
    83  *
    84  * @return True if the interface and method is a system
    85  *         interface and method.
    86  *
    87  */
    88 static inline bool method_is_system(sysarg_t imethod)
    89 {
    90         if (imethod <= IPC_M_LAST_SYSTEM)
     79/** Decide if the method is a system method.
     80 *
     81 * @param method Method to be decided.
     82 *
     83 * @return true if the method is a system method.
     84 *
     85 */
     86static inline bool method_is_system(unative_t method)
     87{
     88        if (method <= IPC_M_LAST_SYSTEM)
    9189                return true;
    9290       
     
    9492}
    9593
    96 /** Decide if the message with this interface and method is forwardable.
    97  *
    98  * Some system messages may be forwarded, for some of them
    99  * it is useless.
    100  *
    101  * @param imethod Interface and method to be decided.
    102  *
    103  * @return True if the interface and method is forwardable.
    104  *
    105  */
    106 static inline bool method_is_forwardable(sysarg_t imethod)
    107 {
    108         switch (imethod) {
     94/** Decide if the message with this method is forwardable.
     95 *
     96 * - some system messages may be forwarded, for some of them
     97 *   it is useless
     98 *
     99 * @param method Method to be decided.
     100 *
     101 * @return true if the method is forwardable.
     102 *
     103 */
     104static inline bool method_is_forwardable(unative_t method)
     105{
     106        switch (method) {
    109107        case IPC_M_CONNECTION_CLONE:
    110108        case IPC_M_CONNECT_ME:
     
    117115}
    118116
    119 /** Decide if the message with this interface and method is immutable on forward.
    120  *
    121  * Some system messages may be forwarded but their content cannot be altered.
    122  *
    123  * @param imethod Interface and method to be decided.
    124  *
    125  * @return True if the interface and method is immutable on forward.
    126  *
    127  */
    128 static inline bool method_is_immutable(sysarg_t imethod)
    129 {
    130         switch (imethod) {
     117/** Decide if the message with this method is immutable on forward.
     118 *
     119 * - some system messages may be forwarded but their content cannot be altered
     120 *
     121 * @param method Method to be decided.
     122 *
     123 * @return true if the method is immutable on forward.
     124 *
     125 */
     126static inline bool method_is_immutable(unative_t method)
     127{
     128        switch (method) {
    131129        case IPC_M_SHARE_OUT:
    132130        case IPC_M_SHARE_IN:
     
    154152static inline bool answer_need_old(call_t *call)
    155153{
    156         switch (IPC_GET_IMETHOD(call->data)) {
     154        switch (IPC_GET_METHOD(call->data)) {
    157155        case IPC_M_CONNECTION_CLONE:
    158156        case IPC_M_CONNECT_ME:
     
    198196                return 0;
    199197       
    200         if (IPC_GET_IMETHOD(*olddata) == IPC_M_CONNECTION_CLONE) {
     198        if (IPC_GET_METHOD(*olddata) == IPC_M_CONNECTION_CLONE) {
    201199                int phoneid = IPC_GET_ARG1(*olddata);
    202200                phone_t *phone = &TASK->phones[phoneid];
     
    220218                        mutex_unlock(&phone->lock);
    221219                }
    222         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_CONNECT_ME) {
     220        } else if (IPC_GET_METHOD(*olddata) == IPC_M_CONNECT_ME) {
    223221                phone_t *phone = (phone_t *) IPC_GET_ARG5(*olddata);
    224222               
     
    239237                        mutex_unlock(&phone->lock);
    240238                }
    241         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_CONNECT_TO_ME) {
     239        } else if (IPC_GET_METHOD(*olddata) == IPC_M_CONNECT_TO_ME) {
    242240                int phoneid = IPC_GET_ARG5(*olddata);
    243241               
     
    250248                        /* Set 'phone hash' as arg5 of response */
    251249                        IPC_SET_ARG5(answer->data,
    252                             (sysarg_t) &TASK->phones[phoneid]);
    253                 }
    254         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_CONNECT_ME_TO) {
     250                            (unative_t) &TASK->phones[phoneid]);
     251                }
     252        } else if (IPC_GET_METHOD(*olddata) == IPC_M_CONNECT_ME_TO) {
    255253                /* If the users accepted call, connect */
    256254                if (IPC_GET_RETVAL(answer->data) == EOK) {
     
    258256                            &TASK->answerbox);
    259257                }
    260         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_SHARE_OUT) {
     258        } else if (IPC_GET_METHOD(*olddata) == IPC_M_SHARE_OUT) {
    261259                if (!IPC_GET_RETVAL(answer->data)) {
    262260                        /* Accepted, handle as_area receipt */
     
    272270                        return rc;
    273271                }
    274         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_SHARE_IN) {
     272        } else if (IPC_GET_METHOD(*olddata) == IPC_M_SHARE_IN) {
    275273                if (!IPC_GET_RETVAL(answer->data)) {
    276274                        irq_spinlock_lock(&answer->sender->lock, true);
     
    283281                        IPC_SET_RETVAL(answer->data, rc);
    284282                }
    285         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_DATA_READ) {
     283        } else if (IPC_GET_METHOD(*olddata) == IPC_M_DATA_READ) {
    286284                ASSERT(!answer->buffer);
    287285                if (!IPC_GET_RETVAL(answer->data)) {
     
    312310                        }
    313311                }
    314         } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_DATA_WRITE) {
     312        } else if (IPC_GET_METHOD(*olddata) == IPC_M_DATA_WRITE) {
    315313                ASSERT(answer->buffer);
    316314                if (!IPC_GET_RETVAL(answer->data)) {
     
    365363static int request_preprocess(call_t *call, phone_t *phone)
    366364{
    367         switch (IPC_GET_IMETHOD(call->data)) {
     365        switch (IPC_GET_METHOD(call->data)) {
    368366        case IPC_M_CONNECTION_CLONE: {
    369367                phone_t *cloned_phone;
     
    401399        }
    402400        case IPC_M_CONNECT_ME:
    403                 IPC_SET_ARG5(call->data, (sysarg_t) phone);
     401                IPC_SET_ARG5(call->data, (unative_t) phone);
    404402                break;
    405403        case IPC_M_CONNECT_ME_TO: {
     
    409407               
    410408                /* Set arg5 for server */
    411                 IPC_SET_ARG5(call->data, (sysarg_t) &TASK->phones[newphid]);
     409                IPC_SET_ARG5(call->data, (unative_t) &TASK->phones[newphid]);
    412410                call->flags |= IPC_CALL_CONN_ME_TO;
    413411                call->priv = newphid;
     
    505503static int process_request(answerbox_t *box, call_t *call)
    506504{
    507         if (IPC_GET_IMETHOD(call->data) == IPC_M_CONNECT_TO_ME) {
     505        if (IPC_GET_METHOD(call->data) == IPC_M_CONNECT_TO_ME) {
    508506                int phoneid = phone_alloc(TASK);
    509507                if (phoneid < 0) { /* Failed to allocate phone */
     
    516514        }
    517515       
    518         switch (IPC_GET_IMETHOD(call->data)) {
     516        switch (IPC_GET_METHOD(call->data)) {
    519517        case IPC_M_DEBUG_ALL:
    520518                return -1;
     
    532530 *
    533531 * @param phoneid Phone handle for the call.
    534  * @param imethod Interface and method of the call.
     532 * @param method  Method of the call.
    535533 * @param arg1    Service-defined payload argument.
    536534 * @param arg2    Service-defined payload argument.
    537535 * @param arg3    Service-defined payload argument.
    538  * @param data    Address of user-space structure where the reply call will
     536 * @param data    Address of userspace structure where the reply call will
    539537 *                be stored.
    540538 *
     
    543541 *
    544542 */
    545 sysarg_t sys_ipc_call_sync_fast(sysarg_t phoneid, sysarg_t imethod,
    546     sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, ipc_data_t *data)
     543unative_t sys_ipc_call_sync_fast(unative_t phoneid, unative_t method,
     544    unative_t arg1, unative_t arg2, unative_t arg3, ipc_data_t *data)
    547545{
    548546        phone_t *phone;
    549547        if (phone_get(phoneid, &phone) != EOK)
    550548                return ENOENT;
    551        
     549
    552550        call_t *call = ipc_call_alloc(0);
    553         IPC_SET_IMETHOD(call->data, imethod);
     551        IPC_SET_METHOD(call->data, method);
    554552        IPC_SET_ARG1(call->data, arg1);
    555553        IPC_SET_ARG2(call->data, arg2);
     
    581579               
    582580                process_answer(call);
     581               
    583582        } else
    584583                IPC_SET_RETVAL(call->data, res);
     
    594593/** Make a synchronous IPC call allowing to transmit the entire payload.
    595594 *
    596  * @param phoneid Phone handle for the call.
    597  * @param request User-space address of call data with the request.
    598  * @param reply   User-space address of call data where to store the
    599  *                answer.
     595 * @param phoneid  Phone handle for the call.
     596 * @param question Userspace address of call data with the request.
     597 * @param reply    Userspace address of call data where to store the
     598 *                 answer.
    600599 *
    601600 * @return Zero on success or an error code.
    602601 *
    603602 */
    604 sysarg_t sys_ipc_call_sync_slow(sysarg_t phoneid, ipc_data_t *request,
     603unative_t sys_ipc_call_sync_slow(unative_t phoneid, ipc_data_t *question,
    605604    ipc_data_t *reply)
    606605{
     
    608607        if (phone_get(phoneid, &phone) != EOK)
    609608                return ENOENT;
    610        
     609
    611610        call_t *call = ipc_call_alloc(0);
    612         int rc = copy_from_uspace(&call->data.args, &request->args,
     611        int rc = copy_from_uspace(&call->data.args, &question->args,
    613612            sizeof(call->data.args));
    614613        if (rc != 0) {
    615614                ipc_call_free(call);
    616                 return (sysarg_t) rc;
     615                return (unative_t) rc;
    617616        }
    618617       
     
    648647 * made over a phone.
    649648 *
    650  * @param phone Phone to check the limit against.
    651  *
     649 * @param phone Phone to check the limit against.
    652650 * @return 0 if limit not reached or -1 if limit exceeded.
    653651 *
     
    667665 *
    668666 * @param phoneid Phone handle for the call.
    669  * @param imethod Interface and method of the call.
     667 * @param method  Method of the call.
    670668 * @param arg1    Service-defined payload argument.
    671669 * @param arg2    Service-defined payload argument.
     
    679677 *
    680678 */
    681 sysarg_t sys_ipc_call_async_fast(sysarg_t phoneid, sysarg_t imethod,
    682     sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4)
     679unative_t sys_ipc_call_async_fast(unative_t phoneid, unative_t method,
     680    unative_t arg1, unative_t arg2, unative_t arg3, unative_t arg4)
    683681{
    684682        phone_t *phone;
    685683        if (phone_get(phoneid, &phone) != EOK)
    686684                return IPC_CALLRET_FATAL;
    687        
     685
    688686        if (check_call_limit(phone))
    689687                return IPC_CALLRET_TEMPORARY;
    690688       
    691689        call_t *call = ipc_call_alloc(0);
    692         IPC_SET_IMETHOD(call->data, imethod);
     690        IPC_SET_METHOD(call->data, method);
    693691        IPC_SET_ARG1(call->data, arg1);
    694692        IPC_SET_ARG2(call->data, arg2);
     
    709707                ipc_backsend_err(phone, call, res);
    710708       
    711         return (sysarg_t) call;
     709        return (unative_t) call;
    712710}
    713711
     
    720718 *
    721719 */
    722 sysarg_t sys_ipc_call_async_slow(sysarg_t phoneid, ipc_data_t *data)
     720unative_t sys_ipc_call_async_slow(unative_t phoneid, ipc_data_t *data)
    723721{
    724722        phone_t *phone;
     
    734732        if (rc != 0) {
    735733                ipc_call_free(call);
    736                 return (sysarg_t) rc;
     734                return (unative_t) rc;
    737735        }
    738736       
     
    744742                ipc_backsend_err(phone, call, res);
    745743       
    746         return (sysarg_t) call;
     744        return (unative_t) call;
    747745}
    748746
     
    753751 * @param callid  Hash of the call to forward.
    754752 * @param phoneid Phone handle to use for forwarding.
    755  * @param imethod New interface and method to use for the forwarded call.
     753 * @param method  New method to use for the forwarded call.
    756754 * @param arg1    New value of the first argument for the forwarded call.
    757755 * @param arg2    New value of the second argument for the forwarded call.
     
    769767 *
    770768 */
    771 static sysarg_t sys_ipc_forward_common(sysarg_t callid, sysarg_t phoneid,
    772     sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3,
    773     sysarg_t arg4, sysarg_t arg5, unsigned int mode, bool slow)
     769static unative_t sys_ipc_forward_common(unative_t callid, unative_t phoneid,
     770    unative_t method, unative_t arg1, unative_t arg2, unative_t arg3,
     771    unative_t arg4, unative_t arg5, unsigned int mode, bool slow)
    774772{
    775773        call_t *call = get_call(callid);
     
    786784        }
    787785       
    788         if (!method_is_forwardable(IPC_GET_IMETHOD(call->data))) {
     786        if (!method_is_forwardable(IPC_GET_METHOD(call->data))) {
    789787                IPC_SET_RETVAL(call->data, EFORWARD);
    790788                ipc_answer(&TASK->answerbox, call);
     
    793791       
    794792        /*
    795          * Userspace is not allowed to change interface and method of system
    796          * methods on forward, allow changing ARG1, ARG2, ARG3 and ARG4 by
    797          * means of method, arg1, arg2 and arg3.
    798          * If the interface and method is immutable, don't change anything.
     793         * Userspace is not allowed to change method of system methods on
     794         * forward, allow changing ARG1, ARG2, ARG3 and ARG4 by means of method,
     795         * arg1, arg2 and arg3.
     796         * If the method is immutable, don't change anything.
    799797         */
    800         if (!method_is_immutable(IPC_GET_IMETHOD(call->data))) {
    801                 if (method_is_system(IPC_GET_IMETHOD(call->data))) {
    802                         if (IPC_GET_IMETHOD(call->data) == IPC_M_CONNECT_TO_ME)
     798        if (!method_is_immutable(IPC_GET_METHOD(call->data))) {
     799                if (method_is_system(IPC_GET_METHOD(call->data))) {
     800                        if (IPC_GET_METHOD(call->data) == IPC_M_CONNECT_TO_ME)
    803801                                phone_dealloc(IPC_GET_ARG5(call->data));
    804802                       
    805                         IPC_SET_ARG1(call->data, imethod);
     803                        IPC_SET_ARG1(call->data, method);
    806804                        IPC_SET_ARG2(call->data, arg1);
    807805                        IPC_SET_ARG3(call->data, arg2);
     
    815813                        }
    816814                } else {
    817                         IPC_SET_IMETHOD(call->data, imethod);
     815                        IPC_SET_METHOD(call->data, method);
    818816                        IPC_SET_ARG1(call->data, arg1);
    819817                        IPC_SET_ARG2(call->data, arg2);
     
    831829/** Forward a received call to another destination - fast version.
    832830 *
    833  * In case the original interface and method is a system method, ARG1, ARG2
    834  * and ARG3 are overwritten in the forwarded message with the new method and
    835  * the new arg1 and arg2, respectively. Otherwise the IMETHOD, ARG1 and ARG2
    836  * are rewritten with the new interface and method, arg1 and arg2, respectively.
    837  * Also note there is a set of immutable methods, for which the new method and
    838  * arguments are not set and these values are ignored.
     831 * In case the original method is a system method, ARG1, ARG2 and ARG3 are
     832 * overwritten in the forwarded message with the new method and the new
     833 * arg1 and arg2, respectively. Otherwise the METHOD, ARG1 and ARG2 are
     834 * rewritten with the new method, arg1 and arg2, respectively. Also note there
     835 * is a set of immutable methods, for which the new method and arguments are not
     836 * set and these values are ignored.
    839837 *
    840838 * @param callid  Hash of the call to forward.
    841839 * @param phoneid Phone handle to use for forwarding.
    842  * @param imethod New interface and method to use for the forwarded call.
     840 * @param method  New method to use for the forwarded call.
    843841 * @param arg1    New value of the first argument for the forwarded call.
    844842 * @param arg2    New value of the second argument for the forwarded call.
     
    848846 *
    849847 */
    850 sysarg_t sys_ipc_forward_fast(sysarg_t callid, sysarg_t phoneid,
    851     sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, unsigned int mode)
    852 {
    853         return sys_ipc_forward_common(callid, phoneid, imethod, arg1, arg2, 0, 0,
     848unative_t sys_ipc_forward_fast(unative_t callid, unative_t phoneid,
     849    unative_t method, unative_t arg1, unative_t arg2, unsigned int mode)
     850{
     851        return sys_ipc_forward_common(callid, phoneid, method, arg1, arg2, 0, 0,
    854852            0, mode, false);
    855853}
     
    858856 *
    859857 * This function is the slow verision of the sys_ipc_forward_fast interface.
    860  * It can copy all five new arguments and the new interface and method from
    861  * the userspace. It naturally extends the functionality of the fast version.
    862  * For system methods, it additionally stores the new value of arg3 to ARG4.
    863  * For non-system methods, it additionally stores the new value of arg3, arg4
    864  * and arg5, respectively, to ARG3, ARG4 and ARG5, respectively.
     858 * It can copy all five new arguments and the new method from the userspace.
     859 * It naturally extends the functionality of the fast version. For system
     860 * methods, it additionally stores the new value of arg3 to ARG4. For non-system
     861 * methods, it additionally stores the new value of arg3, arg4 and arg5,
     862 * respectively, to ARG3, ARG4 and ARG5, respectively.
    865863 *
    866864 * @param callid  Hash of the call to forward.
     
    872870 *
    873871 */
    874 sysarg_t sys_ipc_forward_slow(sysarg_t callid, sysarg_t phoneid,
     872unative_t sys_ipc_forward_slow(unative_t callid, unative_t phoneid,
    875873    ipc_data_t *data, unsigned int mode)
    876874{
     
    879877            sizeof(newdata.args));
    880878        if (rc != 0)
    881                 return (sysarg_t) rc;
     879                return (unative_t) rc;
    882880       
    883881        return sys_ipc_forward_common(callid, phoneid,
    884             IPC_GET_IMETHOD(newdata), IPC_GET_ARG1(newdata),
     882            IPC_GET_METHOD(newdata), IPC_GET_ARG1(newdata),
    885883            IPC_GET_ARG2(newdata), IPC_GET_ARG3(newdata),
    886884            IPC_GET_ARG4(newdata), IPC_GET_ARG5(newdata), mode, true);
     
    902900 *
    903901 */
    904 sysarg_t sys_ipc_answer_fast(sysarg_t callid, sysarg_t retval,
    905     sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4)
     902unative_t sys_ipc_answer_fast(unative_t callid, unative_t retval,
     903    unative_t arg1, unative_t arg2, unative_t arg3, unative_t arg4)
    906904{
    907905        /* Do not answer notification callids */
     
    947945 *
    948946 */
    949 sysarg_t sys_ipc_answer_slow(sysarg_t callid, ipc_data_t *data)
     947unative_t sys_ipc_answer_slow(unative_t callid, ipc_data_t *data)
    950948{
    951949        /* Do not answer notification callids */
     
    984982 *
    985983 */
    986 sysarg_t sys_ipc_hangup(sysarg_t phoneid)
     984unative_t sys_ipc_hangup(unative_t phoneid)
    987985{
    988986        phone_t *phone;
     
    10101008 *
    10111009 */
    1012 sysarg_t sys_ipc_wait_for_call(ipc_data_t *calldata, uint32_t usec,
     1010unative_t sys_ipc_wait_for_call(ipc_data_t *calldata, uint32_t usec,
    10131011    unsigned int flags)
    10141012{
     
    10391037                ipc_call_free(call);
    10401038               
    1041                 return ((sysarg_t) call) | IPC_CALLID_NOTIFICATION;
     1039                return ((unative_t) call) | IPC_CALLID_NOTIFICATION;
    10421040        }
    10431041       
     
    10531051                ipc_call_free(call);
    10541052               
    1055                 return ((sysarg_t) call) | IPC_CALLID_ANSWERED;
     1053                return ((unative_t) call) | IPC_CALLID_ANSWERED;
    10561054        }
    10571055       
     
    10811079        }
    10821080       
    1083         return (sysarg_t) call;
     1081        return (unative_t) call;
    10841082}
    10851083
     
    10871085 *
    10881086 */
    1089 sysarg_t sys_ipc_poke(void)
     1087unative_t sys_ipc_poke(void)
    10901088{
    10911089        waitq_unsleep(&TASK->answerbox.wq);
     
    10951093/** Connect an IRQ handler to a task.
    10961094 *
    1097  * @param inr     IRQ number.
    1098  * @param devno   Device number.
    1099  * @param imethod Interface and method to be associated with the notification.
    1100  * @param ucode   Uspace pointer to the top-half pseudocode.
     1095 * @param inr    IRQ number.
     1096 * @param devno  Device number.
     1097 * @param method Method to be associated with the notification.
     1098 * @param ucode  Uspace pointer to the top-half pseudocode.
    11011099 *
    11021100 * @return EPERM or a return code returned by ipc_irq_register().
    11031101 *
    11041102 */
    1105 sysarg_t sys_ipc_register_irq(inr_t inr, devno_t devno, sysarg_t imethod,
     1103unative_t sys_ipc_register_irq(inr_t inr, devno_t devno, unative_t method,
    11061104    irq_code_t *ucode)
    11071105{
     
    11091107                return EPERM;
    11101108       
    1111         return ipc_irq_register(&TASK->answerbox, inr, devno, imethod, ucode);
     1109        return ipc_irq_register(&TASK->answerbox, inr, devno, method, ucode);
    11121110}
    11131111
     
    11201118 *
    11211119 */
    1122 sysarg_t sys_ipc_unregister_irq(inr_t inr, devno_t devno)
     1120unative_t sys_ipc_unregister_irq(inr_t inr, devno_t devno)
    11231121{
    11241122        if (!(cap_get(TASK) & CAP_IRQ_REG))
     
    11301128}
    11311129
    1132 #ifdef __32_BITS__
    1133 
    1134 /** Syscall connect to a task by ID (32 bits)
     1130#include <console/console.h>
     1131
     1132/** Syscall connect to a task by id.
    11351133 *
    11361134 * @return Phone id on success, or negative error code.
    11371135 *
    11381136 */
    1139 sysarg_t sys_ipc_connect_kbox(sysarg64_t *uspace_taskid)
     1137unative_t sys_ipc_connect_kbox(sysarg64_t *uspace_taskid_arg)
    11401138{
    11411139#ifdef CONFIG_UDEBUG
    1142         sysarg64_t taskid;
    1143         int rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t));
     1140        sysarg64_t taskid_arg;
     1141        int rc = copy_from_uspace(&taskid_arg, uspace_taskid_arg, sizeof(sysarg64_t));
    11441142        if (rc != 0)
    1145                 return (sysarg_t) rc;
    1146        
    1147         return ipc_connect_kbox((task_id_t) taskid);
     1143                return (unative_t) rc;
     1144       
     1145        LOG("sys_ipc_connect_kbox(%" PRIu64 ")", taskid_arg.value);
     1146       
     1147        return ipc_connect_kbox(taskid_arg.value);
    11481148#else
    1149         return (sysarg_t) ENOTSUP;
     1149        return (unative_t) ENOTSUP;
    11501150#endif
    11511151}
    11521152
    1153 #endif  /* __32_BITS__ */
    1154 
    1155 #ifdef __64_BITS__
    1156 
    1157 /** Syscall connect to a task by ID (64 bits)
    1158  *
    1159  * @return Phone id on success, or negative error code.
    1160  *
    1161  */
    1162 sysarg_t sys_ipc_connect_kbox(sysarg_t taskid)
    1163 {
    1164 #ifdef CONFIG_UDEBUG
    1165         return ipc_connect_kbox((task_id_t) taskid);
    1166 #else
    1167         return (sysarg_t) ENOTSUP;
    1168 #endif
    1169 }
    1170 
    1171 #endif  /* __64_BITS__ */
    1172 
    11731153/** @}
    11741154 */
Note: See TracChangeset for help on using the changeset viewer.