Date: Sat, 18 Oct 2008 13:39:23 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184026 - head/sys/amd64/linux32 Message-ID: <200810181339.m9IDdNeQ018119@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Oct 18 13:39:22 2008 New Revision: 184026 URL: http://svn.freebsd.org/changeset/base/184026 Log: Set PCB_32BIT and clear PCB_GS32BIT for linux32 binaries. Tested by: dchagin MFC after: 3 days Modified: head/sys/amd64/linux32/linux32_sysvec.c Modified: head/sys/amd64/linux32/linux32_sysvec.c ============================================================================== --- head/sys/amd64/linux32/linux32_sysvec.c Sat Oct 18 07:20:45 2008 (r184025) +++ head/sys/amd64/linux32/linux32_sysvec.c Sat Oct 18 13:39:22 2008 (r184026) @@ -843,7 +843,8 @@ exec_linux_setregs(td, entry, stack, ps_ fpstate_drop(td); /* Return via doreti so that we can change to a different %cs */ - pcb->pcb_flags |= PCB_FULLCTX; + pcb->pcb_flags |= PCB_FULLCTX | PCB_32BIT; + pcb->pcb_flags &= ~PCB_GS32BIT; td->td_retval[1] = 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810181339.m9IDdNeQ018119>