aboutsummaryrefslogtreecommitdiff
path: root/src/bits64/mod.rs
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-04-26 14:06:06 -0700
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-04-26 14:06:06 -0700
commitca17286ab682cc0c89f1d7f335f90168ce0bfdf9 (patch)
tree09bfb9cedafa856eff44a4d89d883cc10b8739aa /src/bits64/mod.rs
parentee389098aaff520aa36096734ac8d974d58e7181 (diff)
downloadrust-x86-ca17286ab682cc0c89f1d7f335f90168ce0bfdf9.tar.gz
rust-x86-ca17286ab682cc0c89f1d7f335f90168ce0bfdf9.tar.zst
rust-x86-ca17286ab682cc0c89f1d7f335f90168ce0bfdf9.zip
Rewrite all segmentation code and some minor refactoring.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Diffstat (limited to 'src/bits64/mod.rs')
-rw-r--r--src/bits64/mod.rs19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/bits64/mod.rs b/src/bits64/mod.rs
index 2c4a776..7f8cdc3 100644
--- a/src/bits64/mod.rs
+++ b/src/bits64/mod.rs
@@ -1,19 +1,12 @@
//! Data structures and functions used by IA-32e but not Protected Mode.
-macro_rules! check_flag {
- ($doc:meta, $fun:ident, $flag:expr) => (
- #[$doc]
- pub fn $fun(&self) -> bool {
- self.contains($flag)
- }
- )
-}
-
-pub mod irq;
-pub mod rflags;
+pub mod dtables;
pub mod paging;
+pub mod rflags;
pub mod segmentation;
-pub mod task;
-pub mod syscall;
#[cfg(target_arch="x86-64")]
pub mod sgx;
+pub mod syscall;
+pub mod task;
+
+