From owner-cvs-src-old@FreeBSD.ORG Tue Jan 20 12:08:02 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86C211065675 for ; Tue, 20 Jan 2009 12:08:02 +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 63CA48FC18 for ; Tue, 20 Jan 2009 12:08:02 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0KC829x066176 for ; Tue, 20 Jan 2009 12:08:02 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0KC82HD066175 for cvs-src-old@freebsd.org; Tue, 20 Jan 2009 12:08:02 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200901201208.n0KC82HD066175@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 20 Jan 2009 12:07:49 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 cpu_switch.S X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 12:08:12 -0000 kib 2009-01-20 12:07:49 UTC FreeBSD src repository Modified files: sys/amd64/amd64 cpu_switch.S Log: SVN rev 187470 on 2009-01-20 12:07:49Z by kib The context switch to the 32bit binary does not properly restore the fsbase value. The switch loads the fs segment register, that invalidates the value in fsbase msr, thus value in %r9 can not be considered the current value for fsbase anymore. Unconditionally reload fsbase when switching to 32bit binary. PR: 130526 MFC after: 3 weeks Revision Changes Path 1.165 +2 -1 src/sys/amd64/amd64/cpu_switch.S