From owner-cvs-src@FreeBSD.ORG Wed Jul 30 18:19:36 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD9F01065766; Wed, 30 Jul 2008 18:19:36 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 43FE38FC19; Wed, 30 Jul 2008 18:19:36 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m6UIJadZ003656; Wed, 30 Jul 2008 18:19:36 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6UIJalh003655; Wed, 30 Jul 2008 18:19:36 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200807301819.m6UIJalh003655@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Wed, 30 Jul 2008 11:30:55 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/amd64 cpu_switch.S genassym.c src/sys/amd64/ia32 ia32_signal.c src/sys/amd64/include pcb.h src/sys/amd64/linux32 linux32_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2008 18:19:37 -0000 kib 2008-07-30 11:30:55 UTC FreeBSD src repository Modified files: sys/amd64/amd64 cpu_switch.S genassym.c sys/amd64/ia32 ia32_signal.c sys/amd64/include pcb.h sys/amd64/linux32 linux32_machdep.c Log: SVN rev 180992 on 2008-07-30 11:30:55Z by kib Bring back the save/restore of the %ds, %es, %fs and %gs registers for the 32bit images on amd64. Change the semantic of the PCB_32BIT pcb flag to request the context switch code to operate on the segment registers. Its previous meaning of saving or restoring the %gs base offset is assigned to the new PCB_GS32BIT flag. FreeBSD 32bit image activator sets the PCB_32BIT flag, while Linux 32bit emulation sets PCB_32BIT | PCB_GS32BIT. Reviewed by: peter MFC after: 2 weeks Revision Changes Path 1.162 +29 -18 src/sys/amd64/amd64/cpu_switch.S 1.169 +1 -0 src/sys/amd64/amd64/genassym.c 1.18 +1 -1 src/sys/amd64/ia32/ia32_signal.c 1.65 +1 -0 src/sys/amd64/include/pcb.h 1.47 +1 -1 src/sys/amd64/linux32/linux32_machdep.c