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