diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2010-12-07 12:44:33 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-12-07 12:44:33 +0000 |
commit | 1b3c32568ab513ea2ba8ac39b0debdd39fd448b7 (patch) | |
tree | a5e3d91159981f435b6948417220c5a80a35dd85 /sys/amd64/linux32/linux32_sysvec.c | |
parent | 58f61ce4eb96992afa1473654f6e2c6d9d1d10cd (diff) | |
download | src-1b3c32568ab513ea2ba8ac39b0debdd39fd448b7.tar.gz src-1b3c32568ab513ea2ba8ac39b0debdd39fd448b7.zip |
Update some comments related to use of amd64 full context switch.
In exec_linux_setregs(), use locally cached pointer to pcb to set
pcb_full_iret.
In set_regs(), note that full return is needed when code that sets
segment registers is enabled.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=216255
Diffstat (limited to 'sys/amd64/linux32/linux32_sysvec.c')
-rw-r--r-- | sys/amd64/linux32/linux32_sysvec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 0dbcef4127f2..3ebb980f26f3 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -865,13 +865,13 @@ exec_linux_setregs(struct thread *td, struct image_params *imgp, u_long stack) regs->tf_flags = TF_HASSEGS; regs->tf_cs = _ucode32sel; regs->tf_rbx = imgp->ps_strings; - td->td_pcb->pcb_full_iret = 1; load_cr0(rcr0() | CR0_MP | CR0_TS); fpstate_drop(td); - /* Return via doreti so that we can change to a different %cs */ + /* Do full restore on return so that we can change to a different %cs */ pcb->pcb_flags |= PCB_32BIT; pcb->pcb_flags &= ~PCB_GS32BIT; + pcb->pcb_full_iret = 1; td->td_retval[1] = 0; } |