204,6 → 204,34 |
return 0; |
} |
|
int udebug_set_evmask(udebug_evmask_t mask) |
{ |
ipl_t ipl; |
|
klog_printf("udebug_set_mask()"); |
|
ipl = interrupts_disable(); |
klog_printf("debugging task %llu", TASK->taskid); |
|
spinlock_lock(&TASK->lock); |
|
if (TASK->dt_state != UDEBUG_TS_ACTIVE) { |
spinlock_unlock(&TASK->lock); |
interrupts_restore(ipl); |
klog_printf("udebug_set_mask(): not active debuging session"); |
|
return EINVAL; |
} |
|
TASK->debug_evmask = mask; |
|
spinlock_unlock(&TASK->lock); |
interrupts_restore(ipl); |
|
return 0; |
} |
|
|
int udebug_go(thread_t *t, call_t *call) |
{ |
ipl_t ipl; |