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