sysexit

Fast return from system call Privileged

Executes a fast return to privilege level 3 user code.

Pentium II and later

Intel's reference: SYSEXIT

CFPFAFZFSFDFOF –––––––
  • Changes no flag

Forms

  • sysexit

Only kernel code may run it. The plain form returns to 32-bit code: the instruction pointer comes from edx and the stack pointer from ecx, and the user code and stack selectors are IA32_SYSENTER_CS plus 16 and plus 24. With the 64-bit operand size (o64 sysexit) it returns to 64-bit code instead, taking rip from all of rdx and rsp from all of rcx, with the selectors at plus 32 and plus 40.