Subversion Repositories HelenOS

Rev

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

Rev 2109 Rev 2118
Line 164... Line 164...
164
    if (!t->saved_fpu_context)
164
    if (!t->saved_fpu_context)
165
        return -1;
165
        return -1;
166
#  endif
166
#  endif
167
#endif  
167
#endif  
168
 
168
 
169
    t->kstack = frame_alloc(STACK_FRAMES, FRAME_KA | kmflags);
169
    t->kstack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | kmflags);
170
    if (! t->kstack) {
170
    if (! t->kstack) {
171
#ifdef ARCH_HAS_FPU
171
#ifdef ARCH_HAS_FPU
172
        if (t->saved_fpu_context)
172
        if (t->saved_fpu_context)
173
            slab_free(fpu_context_slab,t->saved_fpu_context);
173
            slab_free(fpu_context_slab,t->saved_fpu_context);
174
#endif
174
#endif
Line 566... Line 566...
566
        "-- ---------- ---------- ---- ---------- ----------\n");
566
        "-- ---------- ---------- ---- ---------- ----------\n");
567
 
567
 
568
    for (cur = threads_btree.leaf_head.next;
568
    for (cur = threads_btree.leaf_head.next;
569
        cur != &threads_btree.leaf_head; cur = cur->next) {
569
        cur != &threads_btree.leaf_head; cur = cur->next) {
570
        btree_node_t *node;
570
        btree_node_t *node;
571
        int i;
571
        unsigned int i;
572
 
572
 
573
        node = list_get_instance(cur, btree_node_t, leaf_link);
573
        node = list_get_instance(cur, btree_node_t, leaf_link);
574
        for (i = 0; i < node->keys; i++) {
574
        for (i = 0; i < node->keys; i++) {
575
            thread_t *t;
575
            thread_t *t;
576
       
576