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