Changes in kernel/generic/src/ipc/event.c [228e490:da1bafb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/event.c
r228e490 rda1bafb 57 57 events[i].answerbox = NULL; 58 58 events[i].counter = 0; 59 events[i]. imethod = 0;59 events[i].method = 0; 60 60 } 61 61 } 62 62 63 static int event_subscribe(event_type_t evno, sysarg_t imethod,63 static int event_subscribe(event_type_t evno, unative_t method, 64 64 answerbox_t *answerbox) 65 65 { … … 73 73 if (events[evno].answerbox == NULL) { 74 74 events[evno].answerbox = answerbox; 75 events[evno]. imethod = imethod;75 events[evno].method = method; 76 76 events[evno].counter = 0; 77 77 res = EOK; … … 84 84 } 85 85 86 sysarg_t sys_event_subscribe(sysarg_t evno, sysarg_t imethod)86 unative_t sys_event_subscribe(unative_t evno, unative_t method) 87 87 { 88 return ( sysarg_t) event_subscribe((event_type_t) evno, (sysarg_t)89 imethod, &TASK->answerbox);88 return (unative_t) event_subscribe((event_type_t) evno, (unative_t) 89 method, &TASK->answerbox); 90 90 } 91 91 … … 113 113 events[i].answerbox = NULL; 114 114 events[i].counter = 0; 115 events[i]. imethod = 0;115 events[i].method = 0; 116 116 } 117 117 spinlock_unlock(&events[i].lock); … … 119 119 } 120 120 121 void event_notify(event_type_t evno, sysarg_t a1, sysarg_t a2, sysarg_t a3,122 sysarg_t a4, sysarg_t a5)121 void event_notify(event_type_t evno, unative_t a1, unative_t a2, unative_t a3, 122 unative_t a4, unative_t a5) 123 123 { 124 124 ASSERT(evno < EVENT_END); … … 130 130 call->flags |= IPC_CALL_NOTIF; 131 131 call->priv = ++events[evno].counter; 132 IPC_SET_ IMETHOD(call->data, events[evno].imethod);132 IPC_SET_METHOD(call->data, events[evno].method); 133 133 IPC_SET_ARG1(call->data, a1); 134 134 IPC_SET_ARG2(call->data, a2);
Note:
See TracChangeset
for help on using the changeset viewer.