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 Put the ucontext pointer in %r15 for si...
details: https://anonhg.NetBSD.org/src/rev/f0b2472dc117
branches: trunk
changeset: 553470:f0b2472dc117
user: fvdl <fvdl%NetBSD.org@localhost>
date: Fri Oct 17 16:24:31 2003 +0000
description:
Put the ucontext pointer in %r15 for signal delivery, so that it is
saved across the handler call.
diffstat:
sys/arch/amd64/amd64/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a783d7dc4f17 -r f0b2472dc117 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Fri Oct 17 16:23:20 2003 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Fri Oct 17 16:24:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.12 2003/10/15 09:44:55 drochner Exp $ */
+/* $NetBSD: machdep.c,v 1.13 2003/10/17 16:24:31 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2003/10/15 09:44:55 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2003/10/17 16:24:31 fvdl Exp $");
#include "opt_user_ldt.h"
#include "opt_ddb.h"
@@ -588,7 +588,7 @@
tf->tf_rdi = sig;
tf->tf_rsi = (uint64_t)&fp->sf_si;
- tf->tf_rdx = (uint64_t)&fp->sf_uc;
+ tf->tf_rdx = tf->tf_r15 = (uint64_t)&fp->sf_uc;
/* Remember that we're now on the signal stack. */
if (onstack)
Home |
Main Index |
Thread Index |
Old Index