Message-ID: <09e801c2e8ac$6685f830$0600000a@broadpark.no> From: "Gisle Vanem" To: "djgpp workers" Subject: Getting CRx registers Date: Wed, 12 Mar 2003 16:31:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1123 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123 Reply-To: djgpp-workers AT delorie DOT com Is there a safe way to get the value of the Control Registers (CR0-4) under CPL > 0?. Under Win-XP "movl %cr4,%eax" seems to be safe (i.e. doesn't crash), but return value is always 0. Under plain DOS and CWSDMI it crashes. I could probably use a SIGILL handler, but try to avoid it. -- Gisle V. Entropy isn't what it used to be.