iretq

Interrupt return, 64-bit

Returns from an interrupt by popping rip, cs, rflags, rsp and ss, the 64-bit form.

x86-64 and later

Intel's reference: IRET/IRETD/IRETQ

CFPFAFZFSFTFIFDFOF ●●●●●●●●●
  • ● loaded from the stack
  • IF Loaded only when the program has the privilege to change it. A program in the editor does not, so IF keeps its value.

Forms

  • iretq

Only the flags the privilege level allows are restored. A Linux program has no interrupt handlers of its own to return from.