From 7b1608fde168c8287252190bc4f7813557204aa9 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 8 Sep 2008 09:09:23 +0000 Subject: [PATCH] In linux_set_thread_area(), mark pcb as PCB_GS32BIT. This was missed when r180992 was committed. Reviewed by: peter MFC after: 1 week --- sys/amd64/linux32/linux32_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index 6f1401c060db..ceba56155969 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();