- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am writing an RTOS and I have some questions about Floating-Point Exceptions generated by the FRSTOR instruction.
The Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 2 says that the FRSTOR instruction "might unmask an existing exception that has been detected but not generated, because it was masked. Here, the exception is generated at the completion of the instruction." I have 2 questions related to this:
1) What address will the EIP be when the exception occurs (the FRSTOR instruction or next instruction).
2) How do I cause the exception to occur? I need to test the code I have written to handle this case. I have tried several different ways to get FRSTOR to generate an exception based on the restored data and no matter what I do the exception is not raised until the floating point instruction after the FRSTOR, that does not appear to match what is described in the manual.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for joining the Processor community.
I am currently researching on this issue. As soon as I can, I will send you a message with my findings.
Allan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just checked with engineering department, they have suggested that you could address this matter with our developer's zone.
Allan.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page