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