Use correct register
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 19 Jan 2008 13:27:02 +0000 (13:27 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 19 Jan 2008 13:27:02 +0000 (13:27 +0000)
lib/libc/i386/sys/ptrace.S

index 0a76087..feb1965 100644 (file)
@@ -34,7 +34,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/i386/sys/ptrace.S,v 1.6 1999/08/27 23:59:43 peter Exp $
- * $DragonFly: src/lib/libc/i386/sys/ptrace.S,v 1.4 2005/05/03 07:29:04 joerg Exp $
+ * $DragonFly: src/lib/libc/i386/sys/ptrace.S,v 1.5 2008/01/19 13:27:02 corecode Exp $
  */
 
 #include "SYS.h"
@@ -44,7 +44,7 @@ ENTRY(ptrace)
 #ifdef PIC
         PIC_PROLOGUE
 #  ifdef __thread
-       movl    PIC_GOT(CNAME(errno)), %edx
+       movl    PIC_GOT(CNAME(errno)), %ecx
 #  else
        pushl   %eax
        leal    errno@TLSGD(,%ebx,1), %eax