diff options
author | 2018-07-14 00:14:36 -0700 | |
---|---|---|
committer | 2018-07-14 00:14:36 -0700 | |
commit | af820214bcfde26051b18bb3fd384819e45ffc13 (patch) | |
tree | ddc54cdf0ea05008bd9add33639b5ca2084d765a /src/bits32/segmentation.rs | |
parent | e8af882c479eb063ef6f505cef4e9471b43e9c44 (diff) | |
download | rust-x86-af820214bcfde26051b18bb3fd384819e45ffc13.tar.gz rust-x86-af820214bcfde26051b18bb3fd384819e45ffc13.tar.zst rust-x86-af820214bcfde26051b18bb3fd384819e45ffc13.zip |
rustfmt.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Diffstat (limited to 'src/bits32/segmentation.rs')
-rw-r--r-- | src/bits32/segmentation.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bits32/segmentation.rs b/src/bits32/segmentation.rs index 5114394..d46070e 100644 --- a/src/bits32/segmentation.rs +++ b/src/bits32/segmentation.rs @@ -1,15 +1,15 @@ #[allow(unused_imports)] -use segmentation::{SegmentSelector}; +use segmentation::SegmentSelector; /// Reload code segment register. /// Note this is special since we can not directly move /// to %cs. Instead we push the new segment selector /// and return value on the stack and use lretl /// to reload cs and continue at 1:. -#[cfg(target_arch="x86")] +#[cfg(target_arch = "x86")] pub unsafe fn load_cs(sel: SegmentSelector) { asm!("pushl $0; \ pushl $$1f; \ lretl; \ 1:" :: "ri" (sel.bits() as u32) : "memory"); -}
\ No newline at end of file +} |