From owner-svn-src-head@FreeBSD.ORG Tue Mar 4 19:41:17 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07BF8E8A; Tue, 4 Mar 2014 19:41:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E9B54EDC; Tue, 4 Mar 2014 19:41:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s24JfGFQ076865; Tue, 4 Mar 2014 19:41:16 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s24JfG1O076864; Tue, 4 Mar 2014 19:41:16 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201403041941.s24JfG1O076864@svn.freebsd.org> From: Jung-uk Kim Date: Tue, 4 Mar 2014 19:41:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262746 - head/sys/amd64/amd64 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 19:41:17 -0000 Author: jkim Date: Tue Mar 4 19:41:16 2014 New Revision: 262746 URL: http://svnweb.freebsd.org/changeset/base/262746 Log: Remove dead code since r230426, fix a comment, and tidy up. Reported by: jhb MFC after: 3 days Modified: head/sys/amd64/amd64/cpu_switch.S Modified: head/sys/amd64/amd64/cpu_switch.S ============================================================================== --- head/sys/amd64/amd64/cpu_switch.S Tue Mar 4 18:27:00 2014 (r262745) +++ head/sys/amd64/amd64/cpu_switch.S Tue Mar 4 19:41:16 2014 (r262746) @@ -345,8 +345,8 @@ ENTRY(savectx) movq %r14,PCB_R14(%rdi) movq %r15,PCB_R15(%rdi) - movq %cr0,%rsi - movq %rsi,PCB_CR0(%rdi) + movq %cr0,%rax + movq %rax,PCB_CR0(%rdi) movq %cr2,%rax movq %rax,PCB_CR2(%rdi) movq %cr3,%rax @@ -409,8 +409,6 @@ ENTRY(savectx) sldt PCB_LDT(%rdi) str PCB_TR(%rdi) -2: movq %rsi,%cr0 /* The previous %cr0 is saved in %rsi. */ - movl $1,%eax ret END(savectx) @@ -550,12 +548,12 @@ ENTRY(resumectx) END(resumectx) /* - * Wrapper around fpusave to care about TS0_CR. + * Wrapper around fpusave to care about CR0_TS. */ ENTRY(ctx_fpusave) - movq %cr0,%rsi + movq %cr0,%rax clts call fpusave - movq %rsi,%cr0 + movq %rax,%cr0 ret END(ctx_fpusave)