swapgs

Swap GS Base Register

SWAPGS

Swaps user/kernel GS base address (System).

Details

The Swap GS Base Register instruction swaps user/kernel GS base address (System).

Pseudocode Operation

// Swaps user/kernel GS base address (System)

Example

SWAPGS

Encoding

Binary Layout
0F
+0
01
+1
F8
+2
 
Format Legacy
Opcode 0F 01 F8
Extension Base (64-bit System)

Operands