From owner-svn-src-all@FreeBSD.ORG Tue Feb 10 17:50:04 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31CB81065670; Tue, 10 Feb 2009 17:50:04 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D7A418FC1A; Tue, 10 Feb 2009 17:50:03 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1AHo3tU000177; Tue, 10 Feb 2009 17:50:03 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1AHo3WQ000176; Tue, 10 Feb 2009 17:50:03 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200902101750.n1AHo3WQ000176@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 10 Feb 2009 17:50:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188443 - in stable/7/sys: . amd64/amd64 contrib/pf dev/ath/ath_hal dev/cxgb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 17:50:06 -0000 Author: kib Date: Tue Feb 10 17:50:03 2009 New Revision: 188443 URL: http://svn.freebsd.org/changeset/base/188443 Log: MFC r187470: Unconditionally reload fsbase when switching to 32bit binary. Modified: stable/7/sys/ (props changed) stable/7/sys/amd64/amd64/cpu_switch.S stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) Modified: stable/7/sys/amd64/amd64/cpu_switch.S ============================================================================== --- stable/7/sys/amd64/amd64/cpu_switch.S Tue Feb 10 17:47:35 2009 (r188442) +++ stable/7/sys/amd64/amd64/cpu_switch.S Tue Feb 10 17:50:03 2009 (r188443) @@ -199,6 +199,7 @@ done_load_seg: cmpq PCB_FSBASE(%r8),%r9 jz 1f /* Restore userland %fs */ +restore_fsbase: movl $MSR_FSBASE,%ecx movl PCB_FSBASE(%r8),%eax movl PCB_FSBASE+4(%r8),%edx @@ -281,7 +282,7 @@ load_seg: movl PCB_DS(%r8),%ds movl PCB_ES(%r8),%es movl PCB_FS(%r8),%fs - jmp done_load_seg + jmp restore_fsbase /* Restore userland %gs while preserving kernel gsbase */ 2: movq PCPU(GS32P),%rax movq PCB_GS32SD(%r8),%rcx