Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: [PATCH/RFA] Add SSE registers to i386 CONTEXT struct in winnt.h Cc: Corinna Vinschen Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 * 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/