aboutsummaryrefslogtreecommitdiff
path: root/sys/sun4v
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-12-19 11:31:28 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-12-19 11:31:28 +0000
commit43ba78037b11cbdbf8e3114536cf35bb57ad7bc6 (patch)
treea7a50fa26b834316b071d799b764950c08018610 /sys/sun4v
parent3134e1153f0e054bfbbd732cb3f69975f1d8c693 (diff)
Notes
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/sun4v/machdep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/sun4v/sun4v/machdep.c b/sys/sun4v/sun4v/machdep.c
index 5430460ccc7f..3913d35ca02a 100644
--- a/sys/sun4v/sun4v/machdep.c
+++ b/sys/sun4v/sun4v/machdep.c
@@ -667,11 +667,7 @@ sigreturn(struct thread *td, struct sigreturn_args *uap)
if (error != 0)
return (error);
- PROC_LOCK(p);
- td->td_sigmask = uc.uc_sigmask;
- SIG_CANTMASK(td->td_sigmask);
- signotify(td);
- PROC_UNLOCK(p);
+ kern_sigprocmask(td, SIG_SETMASK, &uc.uc_sigmask, NULL, 0);
CTR4(KTR_SIG, "sigreturn: return td=%p pc=%#lx sp=%#lx tstate=%#lx",
td, mc->mc_tpc, mc->mc_sp, mc->mc_tstate);