Struct x86_64::registers::model_specific::GsBase
source · pub struct GsBase;Expand description
GS.Base Model Specific Register.
GS::swap swaps this register with KernelGsBase.
Implementations§
source§impl GsBase
impl GsBase
sourcepub fn read() -> VirtAddr
pub fn read() -> VirtAddr
Read the current GsBase register.
If CR4.FSGSBASE is set, the more efficient
GS::read_base can be used instead.
sourcepub fn write(address: VirtAddr)
pub fn write(address: VirtAddr)
Write a given virtual address to the GS.Base register.
If CR4.FSGSBASE is set, the more efficient
GS::write_base can be used instead.