Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/mips/gen PIC_TAILCALL on n32/n64 would mess up...



details:   https://anonhg.NetBSD.org/src/rev/cae670ab3f44
branches:  trunk
changeset: 347087:cae670ab3f44
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Aug 13 07:49:32 2016 +0000

description:
PIC_TAILCALL on n32/n64 would mess up GP, so just use SYSTRAP to call
setcontext.

Fixes tests/lib/libc/sys/t_getcontext.c:setcontext_link

diffstat:

 lib/libc/arch/mips/gen/_resumecontext.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c1a19a34b195 -r cae670ab3f44 lib/libc/arch/mips/gen/_resumecontext.S
--- a/lib/libc/arch/mips/gen/_resumecontext.S   Sat Aug 13 07:40:10 2016 +0000
+++ b/lib/libc/arch/mips/gen/_resumecontext.S   Sat Aug 13 07:49:32 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _resumecontext.S,v 1.8 2016/08/12 15:21:25 skrll Exp $ */
+/*     $NetBSD: _resumecontext.S,v 1.9 2016/08/13 07:49:32 skrll Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include "assym.h"
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
-       RCSID("$NetBSD: _resumecontext.S,v 1.8 2016/08/12 15:21:25 skrll Exp $")
+       RCSID("$NetBSD: _resumecontext.S,v 1.9 2016/08/13 07:49:32 skrll Exp $")
 #endif /* SYSLIBC_SCCS && !lint */
 
        .set    reorder
@@ -53,7 +53,7 @@
        PTR_L           a0, _OFFSETOF_UC_LINK(a0)       # linked context?
        beq             a0, zero, 1f                    #   nope, exit process
        nop
-       PIC_TAILCALL(setcontext)                        #   yes, become it.
+       SYSTRAP(setcontext)                             #   yes, become it.
        /* NOTREACHED (in theory) */
        li              a0, -1                          # failure,
 1:



Home | Main Index | Thread Index | Old Index