Changeset 33c2952 in mainline for kernel/generic/src/ipc/kbox.c


Ignore:
Timestamp:
2012-11-07T21:00:02Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
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.
Message:

Merged with mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/kbox.c

    rfc89e32 r33c2952  
    4949{
    5050        /*
     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        /*
    5159         * Only hold kb.cleanup_lock while setting kb.finished -
    5260         * this is enough.
     
    8997       
    9098        /* 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);
    95101}
    96102
     
    163169        while (!done) {
    164170                call_t *call = ipc_wait_for_call(&TASK->kb.box, SYNCH_NO_TIMEOUT,
    165                         SYNCH_FLAGS_NONE);
     171                    SYNCH_FLAGS_NONE);
    166172               
    167173                if (call == NULL)
     
    237243       
    238244        /* 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);
    240246       
    241247        if (task->kb.thread != NULL) {
Note: See TracChangeset for help on using the changeset viewer.