| delorie.com/archives/browse.cgi | search |
| Message-ID: | <09e801c2e8ac$6685f830$0600000a@broadpark.no> |
| From: | "Gisle Vanem" <giva AT bgnett DOT no> |
| To: | "djgpp workers" <djgpp-workers AT delorie DOT com> |
| Subject: | Getting CRx registers |
| Date: | Wed, 12 Mar 2003 16:31:06 +0100 |
| MIME-Version: | 1.0 |
| 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |