Changeset 436a0a5 in mainline for kernel/arch/sparc64/src/proc/thread.c
- Timestamp:
- 2018-11-09T22:04:01Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95d45482
- Parents:
- 88e43bc (diff), abf6c01 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/thread.c
r88e43bc r436a0a5 62 62 } 63 63 64 void thread_create_arch(thread_t *t)64 errno_t thread_create_arch(thread_t *t, thread_flags_t flags) 65 65 { 66 if (( t->uspace) && (!t->arch.uspace_window_buffer)) {66 if ((flags & THREAD_FLAG_USPACE) && (!t->arch.uspace_window_buffer)) { 67 67 /* 68 68 * The thread needs userspace window buffer and the object 69 69 * returned from the slab allocator doesn't have any. 70 70 */ 71 t->arch.uspace_window_buffer = slab_alloc(uwb_cache, 0); 71 t->arch.uspace_window_buffer = slab_alloc(uwb_cache, FRAME_ATOMIC); 72 if (!t->arch.uspace_window_buffer) 73 return ENOMEM; 72 74 } else { 73 75 uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer; … … 80 82 UWB_ALIGNMENT); 81 83 } 84 return EOK; 82 85 } 83 86
Note:
See TracChangeset
for help on using the changeset viewer.