svn commit: r280781 - head/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Sat Mar 28 09:03:55 UTC 2015
Author: kib
Date: Sat Mar 28 09:03:54 2015
New Revision: 280781
URL: https://svnweb.freebsd.org/changeset/base/280781
Log:
Make it possible for the signal handler to act on #ss. Load the
canonical user data segment' selector into %ss when calling the
handler.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/amd64/amd64/machdep.c
Modified: head/sys/amd64/amd64/machdep.c
==============================================================================
--- head/sys/amd64/amd64/machdep.c Sat Mar 28 09:02:19 2015 (r280780)
+++ head/sys/amd64/amd64/machdep.c Sat Mar 28 09:03:54 2015 (r280781)
@@ -443,6 +443,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi,
regs->tf_rflags &= ~(PSL_T | PSL_D);
regs->tf_cs = _ucodesel;
regs->tf_ds = _udatasel;
+ regs->tf_ss = _udatasel;
regs->tf_es = _udatasel;
regs->tf_fs = _ufssel;
regs->tf_gs = _ugssel;
More information about the svn-src-head
mailing list