svn commit: r262746 - head/sys/amd64/amd64

Jung-uk Kim jkim at FreeBSD.org
Tue Mar 4 19:41:17 UTC 2014


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)


More information about the svn-src-head mailing list