Changes in kernel/generic/src/udebug/udebug_ops.c [6eef3c4:55b77d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ops.c
r6eef3c4 r55b77d9 95 95 96 96 /* Verify that 'thread' is a userspace thread. */ 97 if ( !thread->uspace) {97 if ((thread->flags & THREAD_FLAG_USPACE) == 0) { 98 98 /* It's not, deny its existence */ 99 99 irq_spinlock_unlock(&thread->lock, true); … … 200 200 201 201 mutex_lock(&thread->udebug.lock); 202 if ( thread->uspace) {202 if ((thread->flags & THREAD_FLAG_USPACE) != 0) { 203 203 thread->udebug.active = true; 204 204 mutex_unlock(&thread->udebug.lock); … … 393 393 394 394 irq_spinlock_lock(&thread->lock, false); 395 bool uspace = thread->uspace;395 int flags = thread->flags; 396 396 irq_spinlock_unlock(&thread->lock, false); 397 397 398 398 /* Not interested in kernel threads. */ 399 if ( !uspace)399 if ((flags & THREAD_FLAG_USPACE) == 0) 400 400 continue; 401 401
Note:
See TracChangeset
for help on using the changeset viewer.