Add a NOP_L
This commit is contained in:
parent
6ffb083ff8
commit
97239cd361
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue