Changes in kernel/arch/amd64/src/proc/scheduler.c [a759467:687c3cd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/scheduler.c
ra759467 r687c3cd 38 38 #include <proc/thread.h> 39 39 #include <arch.h> 40 #include <arch/context.h> /* SP_DELTA */ 40 41 #include <arch/asm.h> 41 42 #include <print.h> … … 56 57 { 57 58 CPU->arch.tss->rsp0 = 58 (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE ];59 59 (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]; 60 60 61 /* 61 62 * Syscall support. 62 63 */ 63 64 swapgs(); 64 write_msr(AMD_MSR_GS, (uintptr_t) 65 write_msr(AMD_MSR_GS, (uintptr_t)THREAD->arch.syscall_rsp); 65 66 swapgs(); 66 67 67 68 /* TLS support - set FS to thread local storage */ 68 69 write_msr(AMD_MSR_FS, THREAD->arch.tls);
Note:
See TracChangeset
for help on using the changeset viewer.