Changeset 296426ad in mainline for kernel/arch/amd64/src/proc/scheduler.c
- Timestamp:
- 2007-11-16T16:17:18Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c2fb97
- Parents:
- e686744c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/proc/scheduler.c
re686744c r296426ad 57 57 void before_thread_runs_arch(void) 58 58 { 59 CPU->arch.tss->rsp0 = (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA]; 59 CPU->arch.tss->rsp0 = 60 (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]; 60 61 61 /* Syscall support - write address of thread stack pointer to 62 * hidden part of gs */ 62 /* 63 * Syscall support. 64 */ 63 65 swapgs(); 64 write_msr(AMD_MSR_GS, (uint 64_t)&THREAD->kstack);66 write_msr(AMD_MSR_GS, (uintptr_t)THREAD->arch.syscall_rsp); 65 67 swapgs(); 66 68 … … 72 74 if (CPU->id < BKPOINTS_MAX) 73 75 breakpoint_add(&((the_t *) THREAD->kstack)->as, 74 BKPOINT_WRITE | BKPOINT_CHECK_ZERO, 75 CPU->id); 76 BKPOINT_WRITE | BKPOINT_CHECK_ZERO, CPU->id); 76 77 #endif 77 78 }
Note:
See TracChangeset
for help on using the changeset viewer.