aboutsummaryrefslogtreecommitdiff
path: root/src/bits32/irq.rs
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-04-20 19:32:18 -0700
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-04-20 19:32:18 -0700
commit1cee98a89ce51331dc21027b6c20615dd00947c2 (patch)
tree69df4f079e8bd3aa3fac2415b074680cc66ffeb4 /src/bits32/irq.rs
parenta5d2a70541373d263443cfb4ba108c1a3a971070 (diff)
downloadrust-x86-1cee98a89ce51331dc21027b6c20615dd00947c2.tar.gz
rust-x86-1cee98a89ce51331dc21027b6c20615dd00947c2.tar.zst
rust-x86-1cee98a89ce51331dc21027b6c20615dd00947c2.zip
Major rewrite for the segmentation mess.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Diffstat (limited to 'src/bits32/irq.rs')
-rw-r--r--src/bits32/irq.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bits32/irq.rs b/src/bits32/irq.rs
index 7affeb5..bc385ee 100644
--- a/src/bits32/irq.rs
+++ b/src/bits32/irq.rs
@@ -1,8 +1,8 @@
//! Interrupt description and set-up code.
-
+/*
use ::descriptor::*;
use ::paging::VAddr;
-use ::PrivilegeLevel;
+use ::Ring;
/// An interrupt gate or trap gate descriptor.
///
@@ -17,7 +17,7 @@ pub struct IdtEntry {
/// This must always be zero.
pub reserved: u8,
/// flags.
- pub flags: Flags,
+ pub struct: Flags,
/// The upper 16 bits of ISR.
pub offset_hi: u16
}
@@ -39,7 +39,7 @@ impl IdtEntry {
/// The "Present" flag set, which is the most common case. If you need
/// something else, you can construct it manually.
pub const fn new(handler: VAddr, gdt_code_selector: u16,
- dpl: PrivilegeLevel, block: bool) -> IdtEntry {
+ dpl: Ring, block: bool) -> IdtEntry {
IdtEntry {
offset_lo: ((handler.as_usize() as u32) & 0xFFFF) as u16,
offset_hi: ((handler.as_usize() as u32 & 0xFFFF0000) >> 16) as u16,
@@ -55,3 +55,4 @@ impl IdtEntry {
}
}
}
+*/ \ No newline at end of file