svn commit: r184134 - in stable/7/sys: . amd64/linux32

Konstantin Belousov kib at FreeBSD.org
Tue Oct 21 18:50:52 UTC 2008


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;
 }
 


More information about the svn-src-all mailing list