Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2008 18:50:52 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r184134 - in stable/7/sys: . amd64/linux32
Message-ID:  <200810211850.m9LIoqBS006088@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Oct 21 18:50:52 2008
New Revision: 184134
URL: http://svn.freebsd.org/changeset/base/184134

Log:
  MFC r184026:
  Set PCB_32BIT and clear PCB_GS32BIT for linux32 binaries.
  
  Approved by:	re (kensmith)

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/amd64/linux32/linux32_sysvec.c

Modified: stable/7/sys/amd64/linux32/linux32_sysvec.c
==============================================================================
--- stable/7/sys/amd64/linux32/linux32_sysvec.c	Tue Oct 21 18:40:29 2008	(r184133)
+++ stable/7/sys/amd64/linux32/linux32_sysvec.c	Tue Oct 21 18:50:52 2008	(r184134)
@@ -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?200810211850.m9LIoqBS006088>