Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 revert previous; the 128 bytes is for t...



details:   https://anonhg.NetBSD.org/src/rev/40046d62fb8d
branches:  trunk
changeset: 329166:40046d62fb8d
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon May 12 17:27:23 2014 +0000

description:
revert previous; the 128 bytes is for the AMD64 redzone

diffstat:

 sys/arch/amd64/amd64/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a42912ac3e89 -r 40046d62fb8d sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Mon May 12 15:53:01 2014 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Mon May 12 17:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.209 2014/05/12 13:49:24 uebayasi Exp $   */
+/*     $NetBSD: machdep.c,v 1.210 2014/05/12 17:27:23 jakllsch Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.209 2014/05/12 13:49:24 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.210 2014/05/12 17:27:23 jakllsch Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -563,7 +563,7 @@
        if (onstack)
                sp = ((char *)l->l_sigstk.ss_sp + l->l_sigstk.ss_size);
        else
-               sp = (char *)tf->tf_rsp;
+               sp = (char *)tf->tf_rsp - 128;
 
        sp -= sizeof(struct sigframe_siginfo);
        /* Round down the stackpointer to a multiple of 16 for the ABI. */



Home | Main Index | Thread Index | Old Index