Changeset 46c20c8 in mainline for kernel/arch/amd64/src/proc/thread.c
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/arch/amd64/src/proc/thread.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/thread.c
rfb150d78 r46c20c8 34 34 35 35 #include <proc/thread.h> 36 #include <arch/interrupt.h> 36 37 37 38 /** Perform amd64 specific thread initialization. 38 39 * 39 * @param t Thread to be initialized. 40 * @param thread Thread to be initialized. 41 * 40 42 */ 41 void thread_create_arch(thread_t *t )43 void thread_create_arch(thread_t *thread) 42 44 { 43 t->arch.tls = 0; 44 t->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0; 45 thread->arch.tls = 0; 46 thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0; 47 45 48 /* 46 49 * Kernel RSP can be precalculated at thread creation time. 47 50 */ 48 t ->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =49 (uintptr_t) &t ->kstack[PAGE_SIZE - sizeof(uint64_t)];51 thread->arch.syscall_rsp[SYSCALL_KSTACK_RSP] = 52 (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)]; 50 53 } 51 54
Note:
See TracChangeset
for help on using the changeset viewer.
