aboutsummaryrefslogtreecommitdiff
path: root/src/bits64
diff options
context:
space:
mode:
Diffstat (limited to 'src/bits64')
-rw-r--r--src/bits64/paging.rs3
-rw-r--r--src/bits64/rflags.rs4
-rw-r--r--src/bits64/segmentation.rs4
3 files changed, 8 insertions, 3 deletions
diff --git a/src/bits64/paging.rs b/src/bits64/paging.rs
index 90a8f9c..024f7d5 100644
--- a/src/bits64/paging.rs
+++ b/src/bits64/paging.rs
@@ -1,4 +1,7 @@
//! Description of the data-structures for IA-32e paging mode.
+
+use bitflags::*;
+
use core::convert::{From, Into};
use core::fmt;
use core::ops;
diff --git a/src/bits64/rflags.rs b/src/bits64/rflags.rs
index 0fac008..fe1d633 100644
--- a/src/bits64/rflags.rs
+++ b/src/bits64/rflags.rs
@@ -4,7 +4,9 @@
//! The upper 32 bits of RFLAGS register is reserved.
//! The lower 32 bits of RFLAGS is the same as EFLAGS.
-use Ring;
+use bitflags::*;
+
+use crate::Ring;
/// The RFLAGS register.
/// This is duplicated code from bits32 eflags.rs.
diff --git a/src/bits64/segmentation.rs b/src/bits64/segmentation.rs
index 02a0788..978025f 100644
--- a/src/bits64/segmentation.rs
+++ b/src/bits64/segmentation.rs
@@ -1,6 +1,6 @@
#[allow(unused_imports)]
-use segmentation::SegmentSelector;
-use segmentation::{
+use crate::segmentation::SegmentSelector;
+use crate::segmentation::{
BuildDescriptor, Descriptor, DescriptorBuilder, DescriptorType, GateDescriptorBuilder,
LdtDescriptorBuilder, SystemDescriptorTypes64,
};