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:
Marcel Moolenaar 2003-07-30 06:38:35 +00:00
parent 2cd199ce21
commit c9085788f6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118193

View file

@ -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;
}
/*