Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/lib/libc/arch/alpha/gen Set the PV register as well as ...



details:   https://anonhg.NetBSD.org/src/rev/7644b4e78dcc
branches:  nathanw_sa
changeset: 506535:7644b4e78dcc
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Fri Dec 06 20:50:10 2002 +0000

description:
Set the PV register as well as the PC so that gp-loads work in the
called function.

diffstat:

 lib/libc/arch/alpha/gen/makecontext.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8e6de015b7e1 -r 7644b4e78dcc lib/libc/arch/alpha/gen/makecontext.c
--- a/lib/libc/arch/alpha/gen/makecontext.c     Thu Dec 05 06:35:35 2002 +0000
+++ b/lib/libc/arch/alpha/gen/makecontext.c     Fri Dec 06 20:50:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makecontext.c,v 1.1.2.2 2001/12/17 22:10:03 nathanw Exp $      */
+/*     $NetBSD: makecontext.c,v 1.1.2.3 2002/12/06 20:50:10 nathanw Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: makecontext.c,v 1.1.2.2 2001/12/17 22:10:03 nathanw Exp $");
+__RCSID("$NetBSD: makecontext.c,v 1.1.2.3 2002/12/06 20:50:10 nathanw Exp $");
 #endif
 
 #include <stddef.h>
@@ -66,6 +66,7 @@
        /* Arrange for return via the trampoline code. */
        gr[_REG_RA] = (__greg_t)_resumecontext;
        gr[_REG_PC] = (__greg_t)func;
+       gr[_REG_PV] = (__greg_t)func;
 
        va_start(ap, argc);
        /* Pass up to six arguments in a0-5. */



Home | Main Index | Thread Index | Old Index