Processors
Intel® Processors, Tools, and Utilities
14403 Discussions

FRSTOR Floating-Point Exceptions

idata
Employee
1,779 Views

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.

0 Kudos
2 Replies
Allan_J_Intel1
Employee
643 Views

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.

0 Kudos
Allan_J_Intel1
Employee
643 Views

I just checked with engineering department, they have suggested that you could address this matter with our developer's zone.

https://sfederation.intel.com/affwebservices/public/saml2sso?SPID=idz-prod&ProtocolBinding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST&RelayState=https://software%2Eintel%2Ecom/en-us/forum Developer Zone Area

Allan.

0 Kudos
Reply