In "INTERRUPT AND EXCEPTION HANDLING" chapter of the Intel Pentium Programming manual,
A small subset of exceptions that are normally reported as faults are not
restartable and will result in loss of some processor state. An example,
executing a POPAD instruction where the stack frame crosses over the end of
the stack segment will cause such a fault to be reported. Here, the exception
handler will see that the instruction pointer (CS:EIP) has been restored as if
the POPAD instruction had not been executed; however, the internal
processor state (particularly, the general-purpose registers) will have been
modified. These corner cases are considered programming errors, and an
application causing this class of exceptions will likely be terminated by the
operating system.
I thnik that if POPAD occur a fault, the processor will restore general-purpose registers state to before this instruction executing.
why it's say the internal processor state have been modified?
About the popad instructions
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: About the popad instructions
Because it does, end of story.why it's say the internal processor state have been modified?