Rev 3610 | Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3610 | Rev 3684 | ||
|---|---|---|---|
| Line 189... | Line 189... | ||
| 189 | THREAD->ticks = 0; |
189 | THREAD->ticks = 0; |
| 190 | } |
190 | } |
| 191 | spinlock_unlock(&THREAD->lock); |
191 | spinlock_unlock(&THREAD->lock); |
| 192 | 192 | ||
| 193 | if (!ticks && !PREEMPTION_DISABLED) { |
193 | if (!ticks && !PREEMPTION_DISABLED) { |
| - | 194 | #ifdef CONFIG_UDEBUG |
|
| - | 195 | istate_t *istate; |
|
| 194 | 196 | #endif |
|
| 195 | scheduler(); |
197 | scheduler(); |
| 196 | 198 | ||
| 197 | #ifdef CONFIG_UDEBUG |
199 | #ifdef CONFIG_UDEBUG |
| 198 | /* |
200 | /* |
| 199 | * Give udebug chance to stop the thread |
201 | * Give udebug chance to stop the thread |
| 200 | * before it begins executing. |
202 | * before it begins executing userspace code. |
| 201 | */ |
203 | */ |
| 202 | if (istate_from_uspace(THREAD->udebug.uspace_state)) |
204 | istate = THREAD->udebug.uspace_state; |
| - | 205 | if (istate && istate_from_uspace(istate)) |
|
| 203 | udebug_before_thread_runs(); |
206 | udebug_before_thread_runs(); |
| 204 | #endif |
207 | #endif |
| 205 | } |
208 | } |
| 206 | } |
209 | } |
| 207 | 210 | ||