Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 2009 13:44:28 +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: r190623 - in head/sys: amd64/include i386/include
Message-ID:  <200904011344.n31DiSiD033502@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Apr  1 13:44:28 2009
New Revision: 190623
URL: http://svn.freebsd.org/changeset/base/190623

Log:
  Sync definitions for struct sigcontext for i386 and amd64 architectures
  to struct mcontext.

Modified:
  head/sys/amd64/include/signal.h
  head/sys/i386/include/signal.h

Modified: head/sys/amd64/include/signal.h
==============================================================================
--- head/sys/amd64/include/signal.h	Wed Apr  1 13:12:40 2009	(r190622)
+++ head/sys/amd64/include/signal.h	Wed Apr  1 13:44:28 2009	(r190623)
@@ -78,9 +78,13 @@ struct sigcontext {
 	long	sc_r13;
 	long	sc_r14;
 	long	sc_r15;
-	long	sc_trapno;
+	int	sc_trapno;
+	short	sc_fs;
+	short	sc_gs;
 	long	sc_addr;
-	long	sc_flags;
+	int	sc_flags;
+	short	sc_es;
+	short	sc_ds;
 	long	sc_err;
 	long	sc_rip;
 	long	sc_cs;
@@ -95,7 +99,11 @@ struct sigcontext {
 	long	sc_fpformat;
 	long	sc_ownedfp;
 	long	sc_fpstate[64] __aligned(16);
-	long	sc_spare[8];
+
+	long	sc_fsbase;
+	long	sc_gsbase;
+
+	long	sc_spare[6];
 };
 #endif /* __BSD_VISIBLE */
 

Modified: head/sys/i386/include/signal.h
==============================================================================
--- head/sys/i386/include/signal.h	Wed Apr  1 13:12:40 2009	(r190622)
+++ head/sys/i386/include/signal.h	Wed Apr  1 13:44:28 2009	(r190623)
@@ -116,7 +116,11 @@ struct sigcontext {
 	int	sc_ownedfp;
 	int	sc_spare1[1];
 	int	sc_fpstate[128] __aligned(16);
-	int	sc_spare2[8];
+
+	int	sc_fsbase;
+	int	sc_gsbase;
+
+	int	sc_spare2[6];
 };
 
 #define	sc_sp		sc_esp



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