Ignore:
File:
1 edited

Legend:

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

    r716185d rc0699467  
    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         /*
    5850         * Only hold kb.cleanup_lock while setting kb.finished -
    5951         * this is enough.
     
    9688       
    9789        /* Answer all messages in 'calls' and 'dispatched_calls' queues. */
    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);
     90        irq_spinlock_lock(&TASK->kb.box.lock, true);
     91        ipc_cleanup_call_list(&TASK->kb.box.dispatched_calls);
     92        ipc_cleanup_call_list(&TASK->kb.box.calls);
     93        irq_spinlock_unlock(&TASK->kb.box.lock, true);
    10094}
    10195
     
    168162        while (!done) {
    169163                call_t *call = ipc_wait_for_call(&TASK->kb.box, SYNCH_NO_TIMEOUT,
    170                     SYNCH_FLAGS_NONE);
     164                        SYNCH_FLAGS_NONE);
    171165               
    172166                if (call == NULL)
     
    242236       
    243237        /* Connect the newly allocated phone to the kbox */
    244         (void) ipc_phone_connect(&TASK->phones[newphid], &task->kb.box);
     238        ipc_phone_connect(&TASK->phones[newphid], &task->kb.box);
    245239       
    246240        if (task->kb.thread != NULL) {
     
    250244       
    251245        /* Create a kbox thread */
    252         thread_t *kb_thread = thread_create(kbox_thread_proc, NULL, task,
    253             THREAD_FLAG_NONE, "kbox");
     246        thread_t *kb_thread = thread_create(kbox_thread_proc, NULL, task, 0,
     247            "kbox", false);
    254248        if (!kb_thread) {
    255249                mutex_unlock(&task->kb.cleanup_lock);
Note: See TracChangeset for help on using the changeset viewer.