Changeset 0f81ceb7 in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2009-02-12T20:03:07Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95b9963
Parents:
8a72a9a
Message:

remove platform dependent constructs from generic code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    r8a72a9a r0f81ceb7  
    103103
    104104static slab_cache_t *thread_slab;
    105 #ifdef ARCH_HAS_FPU
     105#ifdef CONFIG_FPU
    106106slab_cache_t *fpu_context_slab;
    107107#endif
     
    162162        thr_constructor_arch(t);
    163163       
    164 #ifdef ARCH_HAS_FPU
     164#ifdef CONFIG_FPU
    165165#ifdef CONFIG_FPU_LAZY
    166166        t->saved_fpu_context = NULL;
     
    170170                return -1;
    171171#endif
    172 #endif 
     172#endif
    173173
    174174        t->kstack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | kmflags);
    175175        if (!t->kstack) {
    176 #ifdef ARCH_HAS_FPU
     176#ifdef CONFIG_FPU
    177177                if (t->saved_fpu_context)
    178178                        slab_free(fpu_context_slab, t->saved_fpu_context);
     
    197197
    198198        frame_free(KA2PA(t->kstack));
    199 #ifdef ARCH_HAS_FPU
     199#ifdef CONFIG_FPU
    200200        if (t->saved_fpu_context)
    201201                slab_free(fpu_context_slab, t->saved_fpu_context);
     
    216216            thr_constructor, thr_destructor, 0);
    217217
    218 #ifdef ARCH_HAS_FPU
     218#ifdef CONFIG_FPU
    219219        fpu_context_slab = slab_cache_create("fpu_slab", sizeof(fpu_context_t),
    220220            FPU_CONTEXT_ALIGN, NULL, NULL, 0);
Note: See TracChangeset for help on using the changeset viewer.