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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GsBase
impl RefUnwindSafe for GsBase
impl Send for GsBase
impl Sync for GsBase
impl Unpin for GsBase
impl UnwindSafe for GsBase
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