svn commit: r280876 - stable/10/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Tue Mar 31 01:05:35 UTC 2015
Author: kib
Date: Tue Mar 31 01:05:34 2015
New Revision: 280876
URL: https://svnweb.freebsd.org/changeset/base/280876
Log:
MFC r280781:
Make it possible for the signal handler to act on #ss. Load the
canonical user data segment' selector into %ss when calling the
handler.
Modified:
stable/10/sys/amd64/amd64/machdep.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/amd64/amd64/machdep.c
==============================================================================
--- stable/10/sys/amd64/amd64/machdep.c Tue Mar 31 00:59:30 2015 (r280875)
+++ stable/10/sys/amd64/amd64/machdep.c Tue Mar 31 01:05:34 2015 (r280876)
@@ -429,6 +429,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-stable
mailing list