svn commit: r220461 - head/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Fri Apr 8 21:27:32 UTC 2011
Author: kib
Date: Fri Apr 8 21:27:31 2011
New Revision: 220461
URL: http://svn.freebsd.org/changeset/base/220461
Log:
Remove setting of PCB_FULL_IRET at the places where we are going to call
update_gdt_{f,g}sbase. The functions set the flag when td == curthread,
and sysarch is always called with curthread.
Reviewed by: jhb, jkim
MFC after: 1 week
Modified:
head/sys/amd64/amd64/sys_machdep.c
Modified: head/sys/amd64/amd64/sys_machdep.c
==============================================================================
--- head/sys/amd64/amd64/sys_machdep.c Fri Apr 8 21:26:50 2011 (r220460)
+++ head/sys/amd64/amd64/sys_machdep.c Fri Apr 8 21:27:31 2011 (r220461)
@@ -243,7 +243,6 @@ sysarch(td, uap)
if (!error) {
pcb->pcb_fsbase = i386base;
td->td_frame->tf_fs = _ufssel;
- set_pcb_flags(pcb, PCB_FULL_IRET);
update_gdt_fsbase(td, i386base);
}
break;
@@ -255,7 +254,6 @@ sysarch(td, uap)
error = copyin(uap->parms, &i386base, sizeof(i386base));
if (!error) {
pcb->pcb_gsbase = i386base;
- set_pcb_flags(pcb, PCB_FULL_IRET);
td->td_frame->tf_gs = _ugssel;
update_gdt_gsbase(td, i386base);
}
More information about the svn-src-head
mailing list