Subversion Repositories HelenOS

Rev

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

Rev 3742 Rev 3745
Line 209... Line 209...
209
 *
209
 *
210
 */
210
 */
211
void thread_init(void)
211
void thread_init(void)
212
{
212
{
213
    THREAD = NULL;
213
    THREAD = NULL;
214
    atomic_set(&nrdy,0);
214
    atomic_set(&nrdy, 0);
215
    thread_slab = slab_cache_create("thread_slab", sizeof(thread_t), 0,
215
    thread_slab = slab_cache_create("thread_slab", sizeof(thread_t), 0,
216
        thr_constructor, thr_destructor, 0);
216
        thr_constructor, thr_destructor, 0);
217
 
217
 
218
#ifdef ARCH_HAS_FPU
218
#ifdef ARCH_HAS_FPU
219
    fpu_context_slab = slab_cache_create("fpu_slab", sizeof(fpu_context_t),
219
    fpu_context_slab = slab_cache_create("fpu_slab", sizeof(fpu_context_t),