Changeset cd3b380 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2013-09-11T11:56:39Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1db5669
- Parents:
- 43dd8028
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r43dd8028 rcd3b380 192 192 kmflags &= ~FRAME_HIGHMEM; 193 193 194 thread->kstack = (uint8_t *)195 PA2KA(frame_alloc(STACK_FRAMES, kmflags, STACK_SIZE - 1));196 if (! thread->kstack) {194 uintptr_t stack_phys = 195 frame_alloc(STACK_FRAMES, kmflags, STACK_SIZE - 1); 196 if (!stack_phys) { 197 197 #ifdef CONFIG_FPU 198 198 if (thread->saved_fpu_context) … … 201 201 return -1; 202 202 } 203 204 thread->kstack = (uint8_t *) PA2KA(stack_phys); 203 205 204 206 #ifdef CONFIG_UDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.