From 0a98e2c329dcd151fa16e63de5d7dfa224a1861f Mon Sep 17 00:00:00 2001 From: fvdl Date: Thu, 17 Apr 2003 09:36:47 +0000 Subject: [PATCH] Correct the previous commit, getmcontext has no local 'gr' variable like i386. --- sys/arch/x86_64/x86_64/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/x86_64/x86_64/machdep.c b/sys/arch/x86_64/x86_64/machdep.c index cd9f0bb0abde..25712ecdf299 100644 --- a/sys/arch/x86_64/x86_64/machdep.c +++ b/sys/arch/x86_64/x86_64/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.35 2003/04/11 22:02:34 nathanw Exp $ */ +/* $NetBSD: machdep.c,v 1.36 2003/04/17 09:36:47 fvdl Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc. @@ -1761,8 +1761,8 @@ cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) memcpy(mcp->__gregs, tf, sizeof *tf); if ((ras_rip = (__greg_t)ras_lookup(l->l_proc, - (caddr_t) gr[_REG_RIP])) != -1) - gr[_REG_RIP] = ras_rip; + (caddr_t) mcp->__gregs[_REG_RIP])) != -1) + mcp->__gregs[_REG_RIP] = ras_rip; *flags |= _UC_CPU;