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.