Changeset deacd722 in mainline
- Timestamp:
- 2018-11-09T22:03:24Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b389f95
- Parents:
- 90efa3b
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-08 18:00:23)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:03:24)
- Location:
- kernel
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/src/proc/thread.c
r90efa3b rdeacd722 35 35 #include <proc/thread.h> 36 36 37 void thread_create_arch(thread_t *t)37 errno_t thread_create_arch(thread_t *t, thread_flags_t flags) 38 38 { 39 return EOK; 39 40 } 40 41 -
kernel/arch/amd64/src/proc/thread.c
r90efa3b rdeacd722 42 42 * 43 43 */ 44 void thread_create_arch(thread_t *thread)44 errno_t thread_create_arch(thread_t *thread, thread_flags_t flags) 45 45 { 46 46 /* … … 49 49 thread->arch.kstack_rsp = 50 50 (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)]; 51 return EOK; 51 52 } 52 53 -
kernel/arch/arm32/include/arch/proc/thread.h
r90efa3b rdeacd722 42 42 #define thr_constructor_arch(t) 43 43 #define thr_destructor_arch(t) 44 #define thread_create_arch(t )44 #define thread_create_arch(t, flags) (EOK) 45 45 46 46 #endif -
kernel/arch/ia32/src/proc/thread.c
r90efa3b rdeacd722 39 39 * @param t Thread to be initialized. 40 40 */ 41 void thread_create_arch(thread_t *t)41 errno_t thread_create_arch(thread_t *t, thread_flags_t flags) 42 42 { 43 return EOK; 43 44 } 44 45 -
kernel/arch/ia64/include/arch/proc/thread.h
r90efa3b rdeacd722 41 41 #define thr_constructor_arch(t) 42 42 #define thr_destructor_arch(t) 43 #define thread_create_arch(t )43 #define thread_create_arch(t, flags) (EOK) 44 44 45 45 #endif -
kernel/arch/mips32/include/arch/proc/thread.h
r90efa3b rdeacd722 41 41 #define thr_constructor_arch(t) 42 42 #define thr_destructor_arch(t) 43 #define thread_create_arch(t )43 #define thread_create_arch(t, flags) (EOK) 44 44 45 45 #endif -
kernel/arch/ppc32/include/arch/proc/thread.h
r90efa3b rdeacd722 41 41 #define thr_constructor_arch(t) 42 42 #define thr_destructor_arch(t) 43 #define thread_create_arch(t )43 #define thread_create_arch(t, flags) (EOK) 44 44 45 45 #endif -
kernel/arch/riscv64/src/proc/thread.c
r90efa3b rdeacd722 35 35 #include <proc/thread.h> 36 36 37 void thread_create_arch(thread_t *t)37 errno_t thread_create_arch(thread_t *t, thread_flags_t flags) 38 38 { 39 return EOK; 39 40 } 40 41 -
kernel/arch/sparc64/src/proc/thread.c
r90efa3b rdeacd722 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 -
kernel/generic/include/proc/thread.h
r90efa3b rdeacd722 225 225 226 226 #ifndef thread_create_arch 227 extern void thread_create_arch(thread_t *);227 extern errno_t thread_create_arch(thread_t *, thread_flags_t); 228 228 #endif 229 229 -
kernel/generic/src/proc/thread.c
r90efa3b rdeacd722 346 346 return NULL; 347 347 348 if (thread_create_arch(thread, flags) != EOK) { 349 slab_free(thread_cache, thread); 350 return NULL; 351 } 352 348 353 /* Not needed, but good for debugging */ 349 354 memsetb(thread->kstack, STACK_SIZE, 0); … … 407 412 udebug_thread_initialize(&thread->udebug); 408 413 #endif 409 410 /* Might depend on previous initialization */411 thread_create_arch(thread);412 414 413 415 if ((flags & THREAD_FLAG_NOATTACH) != THREAD_FLAG_NOATTACH)
Note:
See TracChangeset
for help on using the changeset viewer.