This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFA] Add SSE registers to i386 CONTEXT struct in winnt.h


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@ics.u-strasbg.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@ics.u-strasbg.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]