Correct the previous commit, getmcontext has no local 'gr' variable like i386.

This commit is contained in:
fvdl 2003-04-17 09:36:47 +00:00
parent 0545901d27
commit 0a98e2c329
1 changed files with 3 additions and 3 deletions

View File

@ -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;