summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-07-30 06:38:35 +0000
committermarcel <marcel@FreeBSD.org>2003-07-30 06:38:35 +0000
commit986f678c284f299328da7ce7898ee9a8fdb32e53 (patch)
tree4cee034943c6cec72f60b0b6219a5cba1496f247 /sys/alpha
parent786da18d142cc6ad5a7cbab157cbe0cf828186ac (diff)
downloadFreeBSD-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.c1
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;
}
/*
OpenPOWER on IntegriCloud