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


Ignore:
Timestamp:
2010-10-30T20:04:38Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
598f90e
Parents:
069015f2
Message:

Instead of locking TASK→lock, lock udebug.lock before calling udebug_task_cleanup().

File:
1 edited

Legend:

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

    r069015f2 r5c088975  
    107107                /* Terminate debugging session (if any). */
    108108                LOG("Terminate debugging session.");
    109                 irq_spinlock_lock(&TASK->lock, true);
     109                mutex_lock(&TASK->udebug.lock);
    110110                udebug_task_cleanup(TASK);
    111                 irq_spinlock_unlock(&TASK->lock, true);
     111                mutex_unlock(&TASK->udebug.lock);
    112112        } else {
    113113                LOG("Was not debugger.");
Note: See TracChangeset for help on using the changeset viewer.