Changes in kernel/arch/amd64/src/proc/thread.c [a7220de:f4c2b6a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/thread.c
ra7220de rf4c2b6a 34 34 35 35 #include <proc/thread.h> 36 #include <arch/interrupt.h>37 36 38 37 /** Perform amd64 specific thread initialization. 39 38 * 40 * @param thread Thread to be initialized. 41 * 39 * @param t Thread to be initialized. 42 40 */ 43 void thread_create_arch(thread_t *t hread)41 void thread_create_arch(thread_t *t) 44 42 { 45 thread->arch.tls = 0; 46 thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0; 47 43 t->arch.tls = 0; 44 t->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0; 48 45 /* 49 46 * Kernel RSP can be precalculated at thread creation time. 50 47 */ 51 t hread->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =52 (uintptr_t) &t hread->kstack[PAGE_SIZE - sizeof(istate_t)];48 t->arch.syscall_rsp[SYSCALL_KSTACK_RSP] = 49 (uintptr_t) &t->kstack[PAGE_SIZE - sizeof(uint64_t)]; 53 50 } 54 51
Note:
See TracChangeset
for help on using the changeset viewer.