svn commit: r184026 - head/sys/amd64/linux32

Konstantin Belousov kib at FreeBSD.org
Sat Oct 18 13:39:23 UTC 2008


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


More information about the svn-src-head mailing list