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