From owner-svn-src-head@FreeBSD.ORG Sat Oct 18 13:39:23 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CB4C1065686; Sat, 18 Oct 2008 13:39:23 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3BA328FC0C; Sat, 18 Oct 2008 13:39:23 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9IDdN0f018120; Sat, 18 Oct 2008 13:39:23 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9IDdNeQ018119; Sat, 18 Oct 2008 13:39:23 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200810181339.m9IDdNeQ018119@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 18 Oct 2008 13:39:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184026 - head/sys/amd64/linux32 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 13:39:23 -0000 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; }