diff options
author | 2019-06-07 14:03:31 -0700 | |
---|---|---|
committer | 2019-06-07 14:03:31 -0700 | |
commit | ebf98fbaaa8d0a3ce3a700c64667b18edf962eaf (patch) | |
tree | d5b702310fd98c7ab7aa70a635e6b21c30a40a55 /src/segmentation.rs | |
parent | 29dc869cb6c35d35beca1207b92c601b606740b0 (diff) | |
download | rust-x86-ebf98fbaaa8d0a3ce3a700c64667b18edf962eaf.tar.gz rust-x86-ebf98fbaaa8d0a3ce3a700c64667b18edf962eaf.tar.zst rust-x86-ebf98fbaaa8d0a3ce3a700c64667b18edf962eaf.zip |
Move swapgs to 64-bit only code.
Diffstat (limited to 'src/segmentation.rs')
-rw-r--r-- | src/segmentation.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/segmentation.rs b/src/segmentation.rs index 4b08b99..8757add 100644 --- a/src/segmentation.rs +++ b/src/segmentation.rs @@ -568,17 +568,6 @@ pub fn cs() -> SegmentSelector { SegmentSelector::from_raw(segment) } -/// Swap the GS register. -/// -/// Exchanges the current GS base register value with the value contained -/// in MSR address IA32_KERNEL_GS_BASE. -/// -/// # Unsafe -/// The SWAPGS instruction is a privileged instruction intended for use by system software. -pub unsafe fn swapgs() { - asm!("swapgs" ::: "gs"); -} - #[cfg(test)] mod test { use super::*; |