Subversion Repositories HelenOS

Rev

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

Rev 2787 Rev 2869
Line 53... Line 53...
53
#include <proc/thread.h>
53
#include <proc/thread.h>
54
#include <sysinfo/sysinfo.h>
54
#include <sysinfo/sysinfo.h>
55
#include <arch/barrier.h>
55
#include <arch/barrier.h>
56
#include <mm/frame.h>
56
#include <mm/frame.h>
57
#include <ddi/ddi.h>
57
#include <ddi/ddi.h>
-
 
58
#include <udebug/udebug.h>
58
 
59
 
59
/* Pointer to variable with uptime */
60
/* Pointer to variable with uptime */
60
uptime_t *uptime;
61
uptime_t *uptime;
61
 
62
 
62
/** Physical memory area of the real time clock */
63
/** Physical memory area of the real time clock */
Line 187... Line 188...
187
                THREAD->ticks = 0;
188
                THREAD->ticks = 0;
188
        }
189
        }
189
        spinlock_unlock(&THREAD->lock);
190
        spinlock_unlock(&THREAD->lock);
190
       
191
       
191
        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
 
192
            scheduler();
200
            scheduler();
-
 
201
 
-
 
202
            udebug_stoppable_end();
193
        }
203
        }
194
    }
204
    }
195
 
205
 
196
}
206
}
197
 
207