aboutsummaryrefslogtreecommitdiff
path: root/src/dtables.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dtables.rs')
-rw-r--r--src/dtables.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/dtables.rs b/src/dtables.rs
index 97395d6..19baa9a 100644
--- a/src/dtables.rs
+++ b/src/dtables.rs
@@ -1,10 +1,7 @@
//! Functions and data-structures to load descriptor tables.
-
use core::fmt;
use core::mem::size_of;
-use segmentation::SegmentDescriptor;
-
/// A struct describing a pointer to a descriptor table (GDT / IDT).
/// This is in a format suitable for giving to 'lgdt' or 'lidt'.
#[repr(C, packed)]
@@ -34,19 +31,3 @@ impl<T> fmt::Debug for DescriptorTablePointer<T> {
unsafe { write!(f, "DescriptorTablePointer ({} {:?})", self.limit, self.base) }
}
}
-
-/// Load GDT table.
-pub unsafe fn lgdt(gdt: &DescriptorTablePointer<SegmentDescriptor>) {
- asm!("lgdt ($0)" :: "r" (gdt) : "memory");
-}
-
-/// Load LDT table.
-pub unsafe fn lldt(ldt: &DescriptorTablePointer<SegmentDescriptor>) {
- asm!("lldt ($0)" :: "r" (ldt) : "memory");
-}
-/*
-/// Load IDT table.
-pub unsafe fn lidt(idt: &DescriptorTablePointer<IdtEntry>) {
- asm!("lidt ($0)" :: "r" (idt) : "memory");
-}
-*/ \ No newline at end of file