Subversion Repositories HelenOS

Rev

Rev 3613 | Rev 3790 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3613 Rev 3680
Line 187... Line 187...
187
                THREAD->ticks = 0;
187
                THREAD->ticks = 0;
188
        }
188
        }
189
        spinlock_unlock(&THREAD->lock);
189
        spinlock_unlock(&THREAD->lock);
190
       
190
       
191
        if (!ticks && !PREEMPTION_DISABLED) {
191
        if (!ticks && !PREEMPTION_DISABLED) {
-
 
192
#ifdef CONFIG_UDEBUG
-
 
193
            istate_t *istate;
-
 
194
#endif
192
            scheduler();
195
            scheduler();
193
#ifdef CONFIG_UDEBUG
196
#ifdef CONFIG_UDEBUG
194
            /*
197
            /*
195
             * Give udebug chance to stop the thread
198
             * Give udebug chance to stop the thread
196
             * before it begins executing.
199
             * before it begins executing userspace code.
197
             */
200
             */
198
            if (istate_from_uspace(THREAD->udebug.uspace_state))
201
            istate = THREAD->udebug.uspace_state;
-
 
202
            if (istate && istate_from_uspace(istate))
199
                udebug_before_thread_runs();
203
                udebug_before_thread_runs();
200
#endif
204
#endif
201
        }
205
        }
202
    }
206
    }
203
 
207