Changes in kernel/generic/src/proc/thread.c [cd3b380:f22dc820] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
rcd3b380 rf22dc820 192 192 kmflags &= ~FRAME_HIGHMEM; 193 193 194 uintptr_t stack_phys = 195 frame_alloc(STACK_FRAMES, kmflags, STACK_SIZE - 1); 196 if (!stack_phys) { 194 thread->kstack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | kmflags); 195 if (!thread->kstack) { 197 196 #ifdef CONFIG_FPU 198 197 if (thread->saved_fpu_context) … … 202 201 } 203 202 204 thread->kstack = (uint8_t *) PA2KA(stack_phys);205 206 203 #ifdef CONFIG_UDEBUG 207 204 mutex_initialize(&thread->udebug.lock, MUTEX_PASSIVE); … … 219 216 thr_destructor_arch(thread); 220 217 221 frame_free(KA2PA(thread->kstack) , STACK_FRAMES);218 frame_free(KA2PA(thread->kstack)); 222 219 223 220 #ifdef CONFIG_FPU
Note:
See TracChangeset
for help on using the changeset viewer.