Source-Changes-HG archive

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

[src/netbsd-2-0]: src/lib/libc/arch/x86_64/gen Pull up revision 1.3 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/cb9093e10068
branches:  netbsd-2-0
changeset: 564651:cb9093e10068
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri Jan 07 15:00:10 2005 +0000

description:
Pull up revision 1.3 (requested by hira in ticket #1029).

Use correct stack offsets after pushing values onto it.

diffstat:

 lib/libc/arch/x86_64/gen/swapcontext.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r cdba57294ba2 -r cb9093e10068 lib/libc/arch/x86_64/gen/swapcontext.S
--- a/lib/libc/arch/x86_64/gen/swapcontext.S    Fri Jan 07 14:40:49 2005 +0000
+++ b/lib/libc/arch/x86_64/gen/swapcontext.S    Fri Jan 07 15:00:10 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: swapcontext.S,v 1.2 2003/04/07 21:04:23 kleink Exp $   */
+/*     $NetBSD: swapcontext.S,v 1.2.2.1 2005/01/07 15:00:10 jdc Exp $  */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -38,7 +38,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       RCSID("$NetBSD: swapcontext.S,v 1.2 2003/04/07 21:04:23 kleink Exp $")
+       RCSID("$NetBSD: swapcontext.S,v 1.2.2.1 2005/01/07 15:00:10 jdc Exp $")
 #endif /* LIBC_SCCS && !lint */
 
 /*
@@ -59,9 +59,9 @@
 #endif
        testl   %eax,%eax
        jnz     2f
-       movq    (%rsp),%r11
+       movq    16(%rsp),%r11
        movq    %r11,(56 + 21 * 8)(%r12)
-       leaq    8(%rsp),%r11
+       leaq    24(%rsp),%r11
        movq    %r11,(56 + 24 * 8)(%r12)
        movq    %r13,%rdi
 #ifdef PIC



Home | Main Index | Thread Index | Old Index