Changeset deacd722 in mainline for kernel/arch
- Timestamp:
- 2018-11-09T22:03:24Z (7 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/arch
- Files:
-
- 9 edited
-
abs32le/src/proc/thread.c (modified) (1 diff)
-
amd64/src/proc/thread.c (modified) (2 diffs)
-
arm32/include/arch/proc/thread.h (modified) (1 diff)
-
ia32/src/proc/thread.c (modified) (1 diff)
-
ia64/include/arch/proc/thread.h (modified) (1 diff)
-
mips32/include/arch/proc/thread.h (modified) (1 diff)
-
ppc32/include/arch/proc/thread.h (modified) (1 diff)
-
riscv64/src/proc/thread.c (modified) (1 diff)
-
sparc64/src/proc/thread.c (modified) (2 diffs)
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
Note:
See TracChangeset
for help on using the changeset viewer.
