From owner-cvs-src-old@FreeBSD.ORG Fri Apr 8 13:34:09 2011 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 585751065743 for ; Fri, 8 Apr 2011 13:34:09 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 49B718FC08 for ; Fri, 8 Apr 2011 13:34:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p38DY9HO068147 for ; Fri, 8 Apr 2011 13:34:09 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p38DY9EV068146 for cvs-src-old@freebsd.org; Fri, 8 Apr 2011 13:34:09 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201104081334.p38DY9EV068146@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 8 Apr 2011 13:33:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 exception.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: Fri, 08 Apr 2011 13:34:09 -0000 jhb 2011-04-08 13:33:57 UTC FreeBSD src repository Modified files: sys/amd64/amd64 exception.S Log: SVN rev 220452 on 2011-04-08 13:33:57Z by jhb Fix a bug in the previous change to restore the fast path for syscall return. The ast() function may cause a context switch in which case PCB_FULL_IRET would be set in the pcb. However, the code was not rechecking the flag after ast() returned and would not properly restore the FSBASE and GSBASE MSRs. To fix, recheck the PCB_FULL_IRET flag after ast() returns. While here, trim an instruction (and memory access) from the doreti path and fix a typo in a comment. MFC after: 1 week Revision Changes Path 1.154 +5 -6 src/sys/amd64/amd64/exception.S