Rev 2869 | Rev 3431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2869 | Rev 3015 | ||
---|---|---|---|
Line 188... | Line 188... | ||
188 | THREAD->ticks = 0; |
188 | THREAD->ticks = 0; |
189 | } |
189 | } |
190 | spinlock_unlock(&THREAD->lock); |
190 | spinlock_unlock(&THREAD->lock); |
191 | 191 | ||
192 | if (!ticks && !PREEMPTION_DISABLED) { |
192 | if (!ticks && !PREEMPTION_DISABLED) { |
193 | /* |
- | |
194 | * Make thread stoppable when preempted. |
- | |
195 | * Necessary to be able to stop CPU-bound threads |
- | |
196 | * that don't do any syscalls. |
- | |
197 | */ |
- | |
198 | udebug_stoppable_begin(); |
- | |
199 | 193 | ||
200 | scheduler(); |
194 | scheduler(); |
201 | 195 | ||
- | 196 | /* |
|
- | 197 | * Give udebug chance to stop the thread |
|
- | 198 | * before it begins executing. |
|
- | 199 | */ |
|
202 | udebug_stoppable_end(); |
200 | udebug_before_thread_runs(); |
203 | } |
201 | } |
204 | } |
202 | } |
205 | 203 | ||
206 | } |
204 | } |
207 | 205 |