Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR0.TS flag is unreliable #7

Closed
jwt27 opened this issue Mar 8, 2018 · 1 comment
Closed

CR0.TS flag is unreliable #7

jwt27 opened this issue Mar 8, 2018 · 1 comment

Comments

@jwt27
Copy link
Owner

jwt27 commented Mar 8, 2018

The fpu context switching routines previously relied on the TS flag in CR0 to trigger exception 07. What I found is that, in many cases, the TS flag is already cleared upon entering this exception. I'm now using the EM flag to achieve the same effect.

Using TS is the 'nice' way to do it, since that is its intended purpose, so I would prefer to use that if possible. I'm guessing the DPMI host or some real-mode code clears this flag at some point, however I briefly inspected the HDPMI sources and was unable to find any such code.

@jwt27
Copy link
Owner Author

jwt27 commented Oct 27, 2021

Stale issue, CR0.EM works fine for this purpose.

@jwt27 jwt27 closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant