Changes in kernel/arch/amd64/src/proc/thread.c [1a5eca4:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/thread.c
r1a5eca4 r9d58539 35 35 #include <proc/thread.h> 36 36 #include <arch/interrupt.h> 37 #include <arch/kseg_struct.h>38 37 39 38 /** Perform amd64 specific thread initialization. … … 44 43 void thread_create_arch(thread_t *thread) 45 44 { 45 thread->arch.tls = 0; 46 thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0; 47 46 48 /* 47 49 * Kernel RSP can be precalculated at thread creation time. 48 50 */ 49 thread->arch. kstack_rsp=51 thread->arch.syscall_rsp[SYSCALL_KSTACK_RSP] = 50 52 (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)]; 51 53 }
Note:
See TracChangeset
for help on using the changeset viewer.