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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FsBase
impl RefUnwindSafe for FsBase
impl Send for FsBase
impl Sync for FsBase
impl Unpin for FsBase
impl UnwindSafe for FsBase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more