pub unsafe fn swapgs()
Expand description
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.
ยงSafety
The SWAPGS instruction is a privileged instruction intended for use by system software.