Changeset 46c20c8 in mainline for kernel/arch/amd64/src/proc/scheduler.c
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, 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/scheduler.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/scheduler.c
rfb150d78 r46c20c8 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.
