Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2847 → Rev 2848

/branches/tracing/kernel/generic/src/udebug/udebug.c
77,7 → 77,7
ipl_t ipl;
 
ipl = interrupts_disable();
spinlock_lock(&THREAD->lock);
spinlock_lock(&THREAD->debug_lock);
 
if (THREAD->debug_active == true) {
klog_printf("udebug_syscall_event");
101,7 → 101,7
* point it must be back to the initial true value).
*/
THREAD->debug_stop = true;
spinlock_unlock(&THREAD->lock);
spinlock_unlock(&THREAD->debug_lock);
 
spinlock_lock(&TASK->lock);
ipc_answer(&TASK->answerbox, THREAD->debug_go_call);
111,7 → 111,7
 
waitq_sleep(&THREAD->go_wq);
} else {
spinlock_unlock(&THREAD->lock);
spinlock_unlock(&THREAD->debug_lock);
interrupts_restore(ipl);
}
}