mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 17:25:09 +00:00
In get_mcontext(), if we need to clear the return value, clear
FRAME_A3 as well. Otherwise swapcontext() will return -1.
This commit is contained in:
parent
2cd199ce21
commit
c9085788f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118193
|
@ -2021,6 +2021,7 @@ get_mcontext(struct thread *td, mcontext_t *mcp, int clear_ret)
|
|||
if (clear_ret != 0) {
|
||||
mcp->mc_regs[FRAME_V0] = 0;
|
||||
mcp->mc_regs[FRAME_A4] = 0;
|
||||
mcp->mc_regs[FRAME_A3] = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue