IRET/IRETD—Interrupt Return (Continued)
Real Address Mode Exceptions
#GP
#SS
Virtual 8086 Mode Exceptions
#GP(0)
#PF(fault-code)
#SS(0)
#AC(0)
4:238
If the return instruction pointer is not within the return code
segment limit.
If the top bytes of stack are not within stack limits.
If the return instruction pointer is not within the return code
segment limit.
IF IOPL not equal to 3
If a page fault occurs.
If the top bytes of stack are not within stack limits.
If an unaligned memory reference occurs and alignment checking is
enabled.
Volume 4: Base IA-32 Instruction Reference