Module Name: src
Committed By: skrll
Date: Sat Aug 13 07:49:32 UTC 2016
Modified Files:
src/lib/libc/arch/mips/gen: _resumecontext.S
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/arch/mips/gen/_resumecontext.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/mips/gen/_resumecontext.S
diff -u src/lib/libc/arch/mips/gen/_resumecontext.S:1.8 src/lib/libc/arch/mips/gen/_resumecontext.S:1.9
--- src/lib/libc/arch/mips/gen/_resumecontext.S:1.8 Fri Aug 12 15:21:25 2016
+++ src/lib/libc/arch/mips/gen/_resumecontext.S Sat Aug 13 07:49:32 2016
@@ -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 @@ LEAF_NOPROFILE(__resumecontext)
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: