Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2014 19:41:16 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262746 - head/sys/amd64/amd64
Message-ID:  <201403041941.s24JfG1O076864@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403041941.s24JfG1O076864>