Ignore:
File:
1 edited

Legend:

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

    rf173404 rc6f0e3a2  
    4747void ipc_kbox_cleanup(void)
    4848{
     49        ipl_t ipl;
    4950        bool have_kb_thread;
    5051
     
    7778         * kbox thread to clean it up since sender != debugger.
    7879         */
    79         mutex_lock(&TASK->udebug.lock);
     80        ipl = interrupts_disable();
     81        spinlock_lock(&TASK->lock);
    8082        udebug_task_cleanup(TASK);
    81         mutex_unlock(&TASK->udebug.lock);
    82 
     83        spinlock_unlock(&TASK->lock);
     84        interrupts_restore(ipl);
     85       
    8386        if (have_kb_thread) {
    8487                LOG("Join kb.thread.");
Note: See TracChangeset for help on using the changeset viewer.