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
This commit is contained in:
parent
dae91cc140
commit
65e270c51b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user