Changeset 5626277 in mainline for generic/src/ipc/sysipc.c
- Timestamp:
- 2006-04-29T22:12:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 51a7dc1
- Parents:
- 407862e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ipc/sysipc.c
r407862e r5626277 37 37 #include <ipc/sysipc.h> 38 38 #include <ipc/ipcrsc.h> 39 39 #include <arch/interrupt.h> 40 40 41 41 #include <print.h> … … 275 275 GET_CHECK_PHONE(phone, phoneid, return IPC_CALLRET_FATAL); 276 276 277 call = ipc_call_alloc( );277 call = ipc_call_alloc(0); 278 278 IPC_SET_METHOD(call->data, method); 279 279 IPC_SET_ARG1(call->data, arg1); … … 303 303 GET_CHECK_PHONE(phone, phoneid, return IPC_CALLRET_FATAL); 304 304 305 call = ipc_call_alloc( );305 call = ipc_call_alloc(0); 306 306 copy_from_uspace(&call->data.args, &data->args, sizeof(call->data.args)); 307 307 if (!(res=request_preprocess(call))) … … 442 442 return 0; 443 443 444 if (call->flags & IPC_CALL_NOTIF) { 445 ASSERT(! (call->flags & IPC_CALL_STATIC_ALLOC)); 446 STRUCT_TO_USPACE(&calldata->args, &call->data.args); 447 ipc_call_free(call); 448 449 return ((__native)call) | IPC_CALLID_NOTIFICATION; 450 } 451 444 452 if (call->flags & IPC_CALL_ANSWERED) { 445 453 process_answer(call); … … 468 476 return (__native)call; 469 477 } 478 479 /** Connect irq handler to task */ 480 __native sys_ipc_register_irq(__native irq) 481 { 482 if (irq >= IRQ_COUNT) 483 return -ELIMIT; 484 485 irq_ipc_bind_arch(irq); 486 return ipc_irq_register(&TASK->answerbox, irq); 487 } 488 489 /* Disconnect irq handler from task */ 490 __native sys_ipc_unregister_irq(__native irq) 491 { 492 if (irq >= IRQ_COUNT) 493 return -ELIMIT; 494 495 ipc_irq_unregister(&TASK->answerbox, irq); 496 497 return 0; 498 }
Note:
See TracChangeset
for help on using the changeset viewer.