Changes in kernel/generic/src/ipc/kbox.c [1066041:716185d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/kbox.c
r1066041 r716185d 44 44 #include <ipc/kbox.h> 45 45 #include <print.h> 46 #include <proc/thread.h>47 46 48 47 void ipc_kbox_cleanup(void) 49 48 { 49 /* 50 * Not really needed, just to be consistent with the meaning of 51 * answerbox_t.active. 52 */ 53 irq_spinlock_lock(&TASK->kb.box.lock, true); 54 TASK->kb.box.active = false; 55 irq_spinlock_unlock(&TASK->kb.box.lock, true); 56 50 57 /* 51 58 * Only hold kb.cleanup_lock while setting kb.finished - … … 89 96 90 97 /* 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); 98 ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.calls); 99 ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.dispatched_calls); 95 100 } 96 101 … … 163 168 while (!done) { 164 169 call_t *call = ipc_wait_for_call(&TASK->kb.box, SYNCH_NO_TIMEOUT, 165 170 SYNCH_FLAGS_NONE); 166 171 167 172 if (call == NULL) … … 237 242 238 243 /* Connect the newly allocated phone to the kbox */ 239 ipc_phone_connect(&TASK->phones[newphid], &task->kb.box);244 (void) ipc_phone_connect(&TASK->phones[newphid], &task->kb.box); 240 245 241 246 if (task->kb.thread != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.