mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
MFi386: revision 1.622.
> Clear carry flag in get_mcontext so that setcontext does not > return a bogus error. MFC after: 3 days
This commit is contained in:
parent
2afd016ce3
commit
d41b34d1cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155470
@ -2402,9 +2402,11 @@ get_mcontext(struct thread *td, mcontext_t *mcp, int flags)
|
||||
mcp->mc_esi = tp->tf_esi;
|
||||
mcp->mc_ebp = tp->tf_ebp;
|
||||
mcp->mc_isp = tp->tf_isp;
|
||||
mcp->mc_eflags = tp->tf_eflags;
|
||||
if (flags & GET_MC_CLEAR_RET) {
|
||||
mcp->mc_eax = 0;
|
||||
mcp->mc_edx = 0;
|
||||
mcp->mc_eflags &= ~PSL_C;
|
||||
} else {
|
||||
mcp->mc_eax = tp->tf_eax;
|
||||
mcp->mc_edx = tp->tf_edx;
|
||||
@ -2413,7 +2415,6 @@ get_mcontext(struct thread *td, mcontext_t *mcp, int flags)
|
||||
mcp->mc_ecx = tp->tf_ecx;
|
||||
mcp->mc_eip = tp->tf_eip;
|
||||
mcp->mc_cs = tp->tf_cs;
|
||||
mcp->mc_eflags = tp->tf_eflags;
|
||||
mcp->mc_esp = tp->tf_esp;
|
||||
mcp->mc_ss = tp->tf_ss;
|
||||
mcp->mc_len = sizeof(*mcp);
|
||||
|
Loading…
Reference in New Issue
Block a user