- Fix build breakage; there was a reference to a removed syscall in

a KASSERT().  Attempt to cleanup the comment to reflect reality.
This commit is contained in:
Jeff Roberson 2008-03-12 22:14:14 +00:00
parent 391664b110
commit eab82b2ebe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177126

View file

@ -1203,15 +1203,14 @@ set_mcontext(struct thread *td, const mcontext_t *mc)
/*
* We can get an async context passed to us while we
* entered the kernel through a syscall: sigreturn(2)
* and kse_switchin(2) both take contexts that could
* previously be the result of a trap or interrupt.
* takes contexts that could previously be the result of
* a trap or interrupt.
* Hence, we cannot assert that the trapframe is not
* a syscall frame, but we can assert that it's at
* least an expected syscall.
*/
if (tf->tf_flags & FRAME_SYSCALL) {
KASSERT(tf->tf_scratch.gr15 == SYS_sigreturn ||
tf->tf_scratch.gr15 == SYS_kse_switchin, ("foo"));
KASSERT(tf->tf_scratch.gr15 == SYS_sigreturn, ("foo"));
tf->tf_flags &= ~FRAME_SYSCALL;
}
tf->tf_scratch = mc->mc_scratch;