diff options
author | kib <kib@FreeBSD.org> | 2008-10-18 13:39:22 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-10-18 13:39:22 +0000 |
commit | 98d25e143a9d572dd84d0a55fb33c753fd6e80a8 (patch) | |
tree | 376ced0c7c2565dd425b08bdd3dd94f21d123c15 /sys/amd64 | |
parent | 1a26719e3ce785dc9445ec393f46cd4708fccbf2 (diff) | |
download | FreeBSD-src-98d25e143a9d572dd84d0a55fb33c753fd6e80a8.zip FreeBSD-src-98d25e143a9d572dd84d0a55fb33c753fd6e80a8.tar.gz |
Set PCB_32BIT and clear PCB_GS32BIT for linux32 binaries.
Tested by: dchagin
MFC after: 3 days
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/linux32/linux32_sysvec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 5676ddd..6a7aac7 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -843,7 +843,8 @@ exec_linux_setregs(td, entry, stack, ps_strings) 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; } |