Changeset 1a5eca4 in mainline for kernel/arch/amd64/src/proc/thread.c
- Timestamp:
- 2016-04-27T19:36:56Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af9dd1e
- Parents:
- d6f9fff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/thread.c
rd6f9fff r1a5eca4 35 35 #include <proc/thread.h> 36 36 #include <arch/interrupt.h> 37 #include <arch/kseg_struct.h> 37 38 38 39 /** Perform amd64 specific thread initialization. … … 43 44 void thread_create_arch(thread_t *thread) 44 45 { 45 thread->arch.tls = 0;46 thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0;47 48 46 /* 49 47 * Kernel RSP can be precalculated at thread creation time. 50 48 */ 51 thread->arch. syscall_rsp[SYSCALL_KSTACK_RSP]=49 thread->arch.kstack_rsp = 52 50 (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)]; 53 51 }
Note:
See TracChangeset
for help on using the changeset viewer.