232,26 → 232,13 |
|
/** Upon being scheduled to run, check if the current thread should stop. |
* |
* This function is called from clock(). Preemption is enabled. |
* interrupts are disabled, but since this is called after |
* being scheduled-in, we can enable them, if we're careful enough |
* not to allow arbitrary recursion or deadlock with the thread context. |
* This function is called from clock(). |
*/ |
void udebug_before_thread_runs(void) |
{ |
ipl_t ipl; |
|
return; |
|
ipl = interrupts_enable(); |
|
/* Now we're free to do whatever we need (lock mutexes, sleep, etc.) */ |
|
/* Check if we're supposed to stop */ |
/* Check if we are supposed to stop. */ |
udebug_stoppable_begin(); |
udebug_stoppable_end(); |
|
interrupts_restore(ipl); |
} |
|
/** Syscall event hook. |
441,7 → 428,7 |
return; |
} |
|
printf("udebug_breakpoint/trap_event\n"); |
LOG("udebug_breakpoint/trap_event\n"); |
call = THREAD->udebug.go_call; |
THREAD->udebug.go_call = NULL; |
|
457,7 → 444,7 |
THREAD->udebug.go = false; |
THREAD->udebug.cur_event = etype; |
|
printf("- send answer\n"); |
LOG("- send answer\n"); |
ipc_answer(&TASK->answerbox, call); |
|
mutex_unlock(&THREAD->udebug.lock); |