Changeset 0f81ceb7 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2009-02-12T20:03:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95b9963
- Parents:
- 8a72a9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r8a72a9a r0f81ceb7 103 103 104 104 static slab_cache_t *thread_slab; 105 #ifdef ARCH_HAS_FPU105 #ifdef CONFIG_FPU 106 106 slab_cache_t *fpu_context_slab; 107 107 #endif … … 162 162 thr_constructor_arch(t); 163 163 164 #ifdef ARCH_HAS_FPU164 #ifdef CONFIG_FPU 165 165 #ifdef CONFIG_FPU_LAZY 166 166 t->saved_fpu_context = NULL; … … 170 170 return -1; 171 171 #endif 172 #endif 172 #endif 173 173 174 174 t->kstack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | kmflags); 175 175 if (!t->kstack) { 176 #ifdef ARCH_HAS_FPU176 #ifdef CONFIG_FPU 177 177 if (t->saved_fpu_context) 178 178 slab_free(fpu_context_slab, t->saved_fpu_context); … … 197 197 198 198 frame_free(KA2PA(t->kstack)); 199 #ifdef ARCH_HAS_FPU199 #ifdef CONFIG_FPU 200 200 if (t->saved_fpu_context) 201 201 slab_free(fpu_context_slab, t->saved_fpu_context); … … 216 216 thr_constructor, thr_destructor, 0); 217 217 218 #ifdef ARCH_HAS_FPU218 #ifdef CONFIG_FPU 219 219 fpu_context_slab = slab_cache_create("fpu_slab", sizeof(fpu_context_t), 220 220 FPU_CONTEXT_ALIGN, NULL, NULL, 0);
Note:
See TracChangeset
for help on using the changeset viewer.