diff options
author | peter <peter@FreeBSD.org> | 2003-07-23 23:17:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-07-23 23:17:15 +0000 |
commit | 65f0b759da872547aefefcd0237222103acd43ef (patch) | |
tree | eddd2a0b9d406221b4eb7a2523856f1a373a2a1a /sys/amd64 | |
parent | e8484e9d976272d4d93f6f815d362313f35aac6c (diff) | |
download | FreeBSD-src-65f0b759da872547aefefcd0237222103acd43ef.zip FreeBSD-src-65f0b759da872547aefefcd0237222103acd43ef.tar.gz |
Set the %gs base to pcb_gsbase, not pcb_fsbase. Oops.
Discovered by: davidxu
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/sys_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c index a9ed7a1..1ede7d4 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -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: |