Changeset 33c2952 in mainline for kernel/generic/src/ipc/kbox.c
- Timestamp:
- 2012-11-07T21:00:02Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcb0751
- Parents:
- fc89e32 (diff), 94795812 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/kbox.c
rfc89e32 r33c2952 49 49 { 50 50 /* 51 * Not really needed, just to be consistent with the meaning of 52 * answerbox_t.active. 53 */ 54 irq_spinlock_lock(&TASK->kb.box.lock, true); 55 TASK->kb.box.active = false; 56 irq_spinlock_unlock(&TASK->kb.box.lock, true); 57 58 /* 51 59 * Only hold kb.cleanup_lock while setting kb.finished - 52 60 * this is enough. … … 89 97 90 98 /* Answer all messages in 'calls' and 'dispatched_calls' queues. */ 91 irq_spinlock_lock(&TASK->kb.box.lock, true); 92 ipc_cleanup_call_list(&TASK->kb.box.dispatched_calls); 93 ipc_cleanup_call_list(&TASK->kb.box.calls); 94 irq_spinlock_unlock(&TASK->kb.box.lock, true); 99 ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.calls); 100 ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.dispatched_calls); 95 101 } 96 102 … … 163 169 while (!done) { 164 170 call_t *call = ipc_wait_for_call(&TASK->kb.box, SYNCH_NO_TIMEOUT, 165 171 SYNCH_FLAGS_NONE); 166 172 167 173 if (call == NULL) … … 237 243 238 244 /* Connect the newly allocated phone to the kbox */ 239 ipc_phone_connect(&TASK->phones[newphid], &task->kb.box);245 (void) ipc_phone_connect(&TASK->phones[newphid], &task->kb.box); 240 246 241 247 if (task->kb.thread != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.