delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/20/08:22:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.2.0.58.20011120135214.013acc38@ics.u-strasbg.fr>
X-Sender: muller AT ics DOT u-strasbg DOT fr
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
Date: Tue, 20 Nov 2001 14:18:45 +0100
To: cygwin-patches AT sources DOT redhat DOT com
From: Pierre Muller <muller AT cerbere DOT u-strasbg DOT fr>
Subject: [PATCH/RFA] Add SSE registers to i386 CONTEXT struct in winnt.h
Cc: Corinna Vinschen <cygwin AT cygwin DOT com>
Mime-Version: 1.0

Could the following patch be included into
the winsup/w32api/winnt.h
under the obvious rule ?
(I only have an assignment for GDB).


The info comes directly for the Microsoft SDK,
but there is no way these values could be changed,
so even if I did type them, its like if I did a Copy/Paste...

These are needed to add SSE registers support for Cygwin GDB.

New version with ChangeLog entry.


ChangeLog entry:

2001-11-19  Pierre Muller  <muller AT ics DOT u-strasbg DOT fr>

	* w32api/include/winnt.h: prepare SSE register support.
	 (CONTEXT_EXTENDED_REGISTERS): Add new define.
	(MAXIMUM_SUPPORTED_EXTENSION): New define.
	(struct CONTEXT): ExtendedRegisters field added.

Index: winnt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnt.h,v
retrieving revision 1.36
diff -u -r1.36 winnt.h
--- winnt.h	2001/11/12 17:53:47	1.36
+++ winnt.h	2001/11/20 12:20:28
@@ -1190,6 +1190,10 @@
  #define CONTEXT_SEGMENTS	(CONTEXT_i386|0x00000004L)
  #define CONTEXT_FLOATING_POINT	(CONTEXT_i386|0x00000008L)
  #define CONTEXT_DEBUG_REGISTERS	(CONTEXT_i386|0x00000010L)
+#define CONTEXT_EXTENDED_REGISTERS (CONTEXT_i386|0x00000020L)
+
+#define MAXIMUM_SUPPORTED_EXTENSION	512
+
  #define CONTEXT_FULL	(CONTEXT_CONTROL|CONTEXT_INTEGER|CONTEXT_SEGMENTS)
  typedef struct _FLOATING_SAVE_AREA {
  	DWORD	ControlWord;
@@ -1227,6 +1231,7 @@
  	DWORD	EFlags;
  	DWORD	Esp;
  	DWORD	SegSs;
+	BYTE	ExtendedRegisters[MAXIMUM_SUPPORTED_EXTENSION];
  } CONTEXT;
  #elif defined(_PPC_)
  #define CONTEXT_CONTROL	1L



Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller AT ics DOT u-strasbg DOT fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019