Set the %gs base to pcb_gsbase, not pcb_fsbase. Oops.

Discovered by:	davidxu
This commit is contained in:
Peter Wemm 2003-07-23 23:17:15 +00:00
parent 07f9d83887
commit 8b48b40d5e

View File

@ -77,7 +77,7 @@ sysarch(td, uap)
case AMD64_SET_GSBASE:
error = copyin(uap->parms, &pcb->pcb_gsbase, sizeof(pcb->pcb_gsbase));
if (!error)
wrmsr(MSR_KGSBASE, pcb->pcb_fsbase);
wrmsr(MSR_KGSBASE, pcb->pcb_gsbase);
break;
default: