# `sysenter`

[x86-64 Documentation](https://asm-editor.specy.app/documentation/x86.md) › [Instructions](https://asm-editor.specy.app/documentation/x86/instruction.md)

Web page: https://asm-editor.specy.app/documentation/x86/instruction/sysenter

**Fast call to a level 0 system procedure**

Category: System

Executes a fast call to a level 0 system procedure or routine.

Pentium II and later

[Intel's reference: SYSENTER](https://intel.github.io/SDM/instruction/SYSENTER.html)

## Flags

| Flag | Effect |
| --- | --- |
| CF | not changed |
| PF | not changed |
| AF | not changed |
| ZF | not changed |
| SF | not changed |
| IF | always 0 |
| DF | not changed |
| OF | not changed |

## Forms

- `sysenter`

## Description

The low 16 bits of `IA32_SYSENTER_CS` select the kernel's code segment, with its stack segment in the next descriptor; `IA32_SYSENTER_EIP` and `IA32_SYSENTER_ESP` hold the entry point and stack pointer, loaded in full under a 64-bit kernel and as their low 32 bits otherwise. It also clears IF and VM. It saves no return address: the caller and the kernel agree on where to resume, and [`sysexit`](https://asm-editor.specy.app/documentation/x86/instruction/sysexit.md) returns there.

It is the 32-bit system call path. A 64-bit Linux program enters the kernel with [`syscall`](https://asm-editor.specy.app/documentation/x86/instruction/syscall.md).
