Module Name: src
Committed By: uebayasi
Date: Mon May 12 22:50:03 UTC 2014
Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/amd64/include: mcontext.h
Log Message:
Comments.
To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/include/mcontext.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/machdep.c
diff -u src/sys/arch/amd64/amd64/machdep.c:1.210 src/sys/arch/amd64/amd64/machdep.c:1.211
--- src/sys/arch/amd64/amd64/machdep.c:1.210 Mon May 12 17:27:23 2014
+++ src/sys/arch/amd64/amd64/machdep.c Mon May 12 22:50:03 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.210 2014/05/12 17:27:23 jakllsch Exp $ */
+/* $NetBSD: machdep.c,v 1.211 2014/05/12 22:50:03 uebayasi 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.210 2014/05/12 17:27:23 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.211 2014/05/12 22:50:03 uebayasi Exp $");
/* #define XENDEBUG_LOW */
@@ -563,6 +563,7 @@ sendsig_siginfo(const ksiginfo_t *ksi, c
if (onstack)
sp = ((char *)l->l_sigstk.ss_sp + l->l_sigstk.ss_size);
else
+ /* AMD64 ABI 128-bytes "red zone". */
sp = (char *)tf->tf_rsp - 128;
sp -= sizeof(struct sigframe_siginfo);
Index: src/sys/arch/amd64/include/mcontext.h
diff -u src/sys/arch/amd64/include/mcontext.h:1.17 src/sys/arch/amd64/include/mcontext.h:1.18
--- src/sys/arch/amd64/include/mcontext.h:1.17 Sat Feb 15 22:20:41 2014
+++ src/sys/arch/amd64/include/mcontext.h Mon May 12 22:50:03 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: mcontext.h,v 1.17 2014/02/15 22:20:41 dsl Exp $ */
+/* $NetBSD: mcontext.h,v 1.18 2014/05/12 22:50:03 uebayasi Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -66,6 +66,7 @@ typedef struct {
#define _UC_UCONTEXT_ALIGN (~0xf)
+/* AMD64 ABI 128-bytes "red zone". */
#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_RSP] - 128)
#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_RIP])
#define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_RAX])