[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1065 - trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64



Author: ps-guest
Date: 2006-01-18 10:41:04 +0000 (Wed, 18 Jan 2006)
New Revision: 1065

Modified:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S
Log:
use preserved register (cx is scratch on amd64)


Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S	2006-01-18 10:38:50 UTC (rev 1064)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S	2006-01-18 10:41:04 UTC (rev 1065)
@@ -21,13 +21,13 @@
 
 .text
 ENTRY(__getcontext)
-        movl 0(%rsp), %rcx	/* save the return PC value */
+        movq 0(%rsp), %rsi	/* save the return PC value */
  
         DO_CALL (getcontext, 1)
         jb SYSCALL_ERROR_LABEL
 
         addq $8, %rsp		/* remove stale return address */
-        jmp  *%rcx
+        jmp  *%rsi
 
 L(pseudo_end):
 	ret



Reply to: