Function x86::bits64::segmentation::swapgs [−][src]
pub unsafe fn swapgs()
Swap the GS register.
Exchanges the current GS base register value with the value contained in MSR address IA32_KERNEL_GS_BASE.
The SWAPGS instruction is available only in 64-bit mode.
Unsafe
The SWAPGS instruction is a privileged instruction intended for use by system software.