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


Ignore:
Timestamp:
2012-09-04T21:12:43Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
983cabe8
Parents:
2541646
Message:

Do not establish callback connections after the answerbox enters cleanup.

File:
1 edited

Legend:

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

    r2541646 rc33f39f  
    4848{
    4949        /*
     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
     57        /*
    5058         * Only hold kb.cleanup_lock while setting kb.finished -
    5159         * this is enough.
     
    234242       
    235243        /* Connect the newly allocated phone to the kbox */
    236         ipc_phone_connect(&TASK->phones[newphid], &task->kb.box);
     244        (void) ipc_phone_connect(&TASK->phones[newphid], &task->kb.box);
    237245       
    238246        if (task->kb.thread != NULL) {
Note: See TracChangeset for help on using the changeset viewer.