diff options
author | marcel <marcel@FreeBSD.org> | 2003-07-30 06:38:35 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-07-30 06:38:35 +0000 |
commit | 986f678c284f299328da7ce7898ee9a8fdb32e53 (patch) | |
tree | 4cee034943c6cec72f60b0b6219a5cba1496f247 /sys/alpha | |
parent | 786da18d142cc6ad5a7cbab157cbe0cf828186ac (diff) | |
download | FreeBSD-src-986f678c284f299328da7ce7898ee9a8fdb32e53.zip FreeBSD-src-986f678c284f299328da7ce7898ee9a8fdb32e53.tar.gz |
In get_mcontext(), if we need to clear the return value, clear
FRAME_A3 as well. Otherwise swapcontext() will return -1.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 64148f9..931e24e 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -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; } /* |