diff options
author | 2018-04-26 14:24:12 -0700 | |
---|---|---|
committer | 2018-04-26 14:24:12 -0700 | |
commit | 848ec0fae090dbc1657d02b436b8b887df519e90 (patch) | |
tree | 9d289473fde6fe1b45a376d10a16944b33ad7de9 /src/bits64/dtables.rs | |
parent | 19843c0bcfb7a5d80720ba82524d40b3d69ace4e (diff) | |
download | rust-x86-848ec0fae090dbc1657d02b436b8b887df519e90.tar.gz rust-x86-848ec0fae090dbc1657d02b436b8b887df519e90.tar.zst rust-x86-848ec0fae090dbc1657d02b436b8b887df519e90.zip |
Rename types Descriptor{arch} to Descriptor.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Diffstat (limited to 'src/bits64/dtables.rs')
-rw-r--r-- | src/bits64/dtables.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bits64/dtables.rs b/src/bits64/dtables.rs index 2bc06c8..00fad0f 100644 --- a/src/bits64/dtables.rs +++ b/src/bits64/dtables.rs @@ -1,18 +1,18 @@ //! Functions to load descriptor tables. use dtables::DescriptorTablePointer; -use bits64::segmentation::Descriptor64; +use bits64::segmentation::Descriptor; /// Load GDT table with 64-bits descriptors. -pub unsafe fn lgdt(gdt: &DescriptorTablePointer<Descriptor64>) { +pub unsafe fn lgdt(gdt: &DescriptorTablePointer<Descriptor>) { asm!("lgdt ($0)" :: "r" (gdt) : "memory"); } /// Load LDT table with 64-bits descriptors. -pub unsafe fn lldt(ldt: &DescriptorTablePointer<Descriptor64>) { +pub unsafe fn lldt(ldt: &DescriptorTablePointer<Descriptor>) { asm!("lldt ($0)" :: "r" (ldt) : "memory"); } /// Load IDT table with 64-bits descriptors. -pub unsafe fn lidt(idt: &DescriptorTablePointer<Descriptor64>) { +pub unsafe fn lidt(idt: &DescriptorTablePointer<Descriptor>) { asm!("lidt ($0)" :: "r" (idt) : "memory"); } |