Use the new names (_REG_RFLAGS and _REG_RSP) for the indexes of __gregs[]

which match the names of in the trapframe and .S code.
This commit is contained in:
dsl 2008-01-05 19:11:53 +00:00
parent 8a62c0f2a5
commit 902612f1f5

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_machdep.c,v 1.27 2007/12/20 23:02:52 dsl Exp $ */
/* $NetBSD: linux_machdep.c,v 1.28 2008/01/05 19:11:53 dsl Exp $ */
/*-
* Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.27 2007/12/20 23:02:52 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.28 2008/01/05 19:11:53 dsl Exp $");
#include <sys/param.h>
#include <sys/types.h>
@ -432,7 +432,7 @@ linux_sys_rt_sigreturn(struct lwp *l, const void *v, register_t *retval)
mctx->__gregs[_REG_RDX] = lsigctx->rdx;
mctx->__gregs[_REG_RCX] = lsigctx->rcx;
mctx->__gregs[_REG_RIP] = lsigctx->rip;
mctx->__gregs[_REG_RFL] = lsigctx->eflags;
mctx->__gregs[_REG_RFLAGS] = lsigctx->eflags;
mctx->__gregs[_REG_CS] = lsigctx->cs;
mctx->__gregs[_REG_GS] = lsigctx->gs;
mctx->__gregs[_REG_FS] = lsigctx->fs;
@ -440,7 +440,7 @@ linux_sys_rt_sigreturn(struct lwp *l, const void *v, register_t *retval)
mctx->__gregs[_REG_TRAPNO] = lsigctx->trapno;
mctx->__gregs[_REG_ES] = tf->tf_es;
mctx->__gregs[_REG_DS] = tf->tf_ds;
mctx->__gregs[_REG_URSP] = lsigctx->rsp; /* XXX */
mctx->__gregs[_REG_RSP] = lsigctx->rsp; /* XXX */
mctx->__gregs[_REG_SS] = tf->tf_ss;
/*