Changeset 4e5dabf in mainline
- Timestamp:
- 2012-06-01T18:55:03Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77ad86c
- Parents:
- db675dd
- Location:
- kernel/generic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/ipc.h
rdb675dd r4e5dabf 148 148 extern int ipc_call(phone_t *, call_t *); 149 149 extern int ipc_call_sync(phone_t *, call_t *); 150 extern call_t * 150 extern call_t *ipc_wait_for_call(answerbox_t *, uint32_t, unsigned int); 151 151 extern int ipc_forward(call_t *, phone_t *, answerbox_t *, unsigned int); 152 152 extern void ipc_answer(answerbox_t *, call_t *); -
kernel/generic/include/ipc/ipcrsc.h
rdb675dd r4e5dabf 39 39 #include <ipc/ipc.h> 40 40 41 extern call_t * get_call(sysarg_t callid);42 extern int phone_alloc(task_t * t);43 extern void phone_connect(int phoneid, answerbox_t *box);44 extern void phone_dealloc(int phoneid);41 extern call_t *get_call(sysarg_t); 42 extern int phone_alloc(task_t *); 43 extern void phone_connect(int, answerbox_t *); 44 extern void phone_dealloc(int); 45 45 46 46 #endif -
kernel/generic/src/ipc/sysipc.c
rdb675dd r4e5dabf 597 597 if (IPC_GET_IMETHOD(call->data) == IPC_M_CONNECT_TO_ME) { 598 598 int phoneid = phone_alloc(TASK); 599 if (phoneid < 0) { /* Failed to allocate phone */599 if (phoneid < 0) { /* Failed to allocate phone */ 600 600 IPC_SET_RETVAL(call->data, ELIMIT); 601 601 ipc_answer(box, call); … … 883 883 884 884 /* 885 * User space is not allowed to change interface and method of system885 * User space is not allowed to change interface and method of system 886 886 * methods on forward, allow changing ARG1, ARG2, ARG3 and ARG4 by 887 * means of method, arg1, arg2 and arg3.887 * means of imethod, arg1, arg2 and arg3. 888 888 * If the interface and method is immutable, don't change anything. 889 889 */ … … 897 897 IPC_SET_ARG3(call->data, arg2); 898 898 899 if (slow) {899 if (slow) 900 900 IPC_SET_ARG4(call->data, arg3); 901 /*902 * For system methods we deliberately don't903 * overwrite ARG5.904 */905 }901 902 /* 903 * For system methods we deliberately don't 904 * overwrite ARG5. 905 */ 906 906 } else { 907 907 IPC_SET_IMETHOD(call->data, imethod); -
kernel/generic/src/synch/spinlock.c
rdb675dd r4e5dabf 262 262 int rc = spinlock_trylock(&(lock->lock)); 263 263 264 ASSERT_IRQ_SPINLOCK( !rc || !lock->guard, lock);264 ASSERT_IRQ_SPINLOCK((!rc) || (!lock->guard), lock); 265 265 return rc; 266 266 }
Note:
See TracChangeset
for help on using the changeset viewer.