Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2015 09:03:55 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280781 - head/sys/amd64/amd64
Message-ID:  <201503280903.t2S93tgH013452@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503280903.t2S93tgH013452>