Date: Sun, 9 Nov 2003 21:28:05 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ia64/ia64 machdep.c Message-ID: <200311100528.hAA5S5fK078181@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2003/11/09 21:28:05 PST
FreeBSD src repository
Modified files:
sys/ia64/ia64 machdep.c
Log:
In get_mcontext(), do not update bspstore and ndirty in the trapframe.
Only update them in the newly created context to reflect the state
after copying the dirty registers onto the user stack. If we were to
update the trapframe, we lose the state at entry into the kernel. We
may need that after we create the context, such as for KSE upcalls.
We have to update the trapframe after writing the dirty registers to
the user stack for signal delivery to work. But this is best done in
sendsig() itself where it applies, not in get_mcontext() where it's
done unconditionally.
Revision Changes Path
1.166 +9 -5 src/sys/ia64/ia64/machdep.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311100528.hAA5S5fK078181>
