Module Name: src
Committed By: skrll
Date: Sat Aug 13 08:09:17 UTC 2016
Modified Files:
src/lib/libc/arch/mips/gen: _resumecontext.S
Log Message:
Add a NOP_L
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 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.9 src/lib/libc/arch/mips/gen/_resumecontext.S:1.10
--- src/lib/libc/arch/mips/gen/_resumecontext.S:1.9 Sat Aug 13 07:49:32 2016
+++ src/lib/libc/arch/mips/gen/_resumecontext.S Sat Aug 13 08:09:17 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: _resumecontext.S,v 1.9 2016/08/13 07:49:32 skrll Exp $ */
+/* $NetBSD: _resumecontext.S,v 1.10 2016/08/13 08:09:17 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.9 2016/08/13 07:49:32 skrll Exp $")
+ RCSID("$NetBSD: _resumecontext.S,v 1.10 2016/08/13 08:09:17 skrll Exp $")
#endif /* SYSLIBC_SCCS && !lint */
.set reorder
@@ -51,6 +51,7 @@ LEAF_NOPROFILE(__resumecontext)
PTR_S zero, _OFFSETOF_UC_LINK(a0) # make sure uc_link is 0
SYSTRAP(getcontext) # get context
PTR_L a0, _OFFSETOF_UC_LINK(a0) # linked context?
+ NOP_L
beq a0, zero, 1f # nope, exit process
nop
SYSTRAP(setcontext) # yes, become it.