summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux32
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-09-08 09:09:23 +0000
committerkib <kib@FreeBSD.org>2008-09-08 09:09:23 +0000
commit396f47bf91101a8165d7d35ae724ad9da9774e33 (patch)
tree205113fd29ef4a56be210672ade9348eb060e4cd /sys/amd64/linux32
parentc593a271c456fa0122e3c998de8d4c7db150c02f (diff)
downloadFreeBSD-src-396f47bf91101a8165d7d35ae724ad9da9774e33.zip
FreeBSD-src-396f47bf91101a8165d7d35ae724ad9da9774e33.tar.gz
In linux_set_thread_area(), mark pcb as PCB_GS32BIT. This was missed
when r180992 was committed. Reviewed by: peter MFC after: 1 week
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r--sys/amd64/linux32/linux32_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index 6f1401c..ceba561 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -1354,7 +1354,7 @@ linux_set_thread_area(struct thread *td,
td->td_pcb->pcb_gsbase = (register_t)info.base_addr;
td->td_pcb->pcb_gs32sd = gdt[GUGS32_SEL] = sd;
td->td_pcb->pcb_gs32p = &gdt[GUGS32_SEL];
- td->td_pcb->pcb_flags |= PCB_32BIT;
+ td->td_pcb->pcb_flags |= PCB_32BIT | PCB_GS32BIT;
wrmsr(MSR_KGSBASE, td->td_pcb->pcb_gsbase);
critical_exit();
OpenPOWER on IntegriCloud