diff options
author | 2018-04-20 19:32:18 -0700 | |
---|---|---|
committer | 2018-04-20 19:32:18 -0700 | |
commit | 1cee98a89ce51331dc21027b6c20615dd00947c2 (patch) | |
tree | 69df4f079e8bd3aa3fac2415b074680cc66ffeb4 /src/bits64/irq.rs | |
parent | a5d2a70541373d263443cfb4ba108c1a3a971070 (diff) | |
download | rust-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/bits64/irq.rs')
-rw-r--r-- | src/bits64/irq.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bits64/irq.rs b/src/bits64/irq.rs index 50d205d..da2e3c4 100644 --- a/src/bits64/irq.rs +++ b/src/bits64/irq.rs @@ -1,7 +1,7 @@ //! Interrupt description and set-up code. - +/* use ::segmentation::SegmentSelector; -use PrivilegeLevel; +use Ring; use descriptor::*; use paging::VAddr; @@ -21,7 +21,7 @@ pub struct IdtEntry { /// This must always be zero. pub ist_index: u8, /// Flags. - pub flags: Flags, + pub struct: Flags, /// The upper 48 bits of ISR (the last 16 bits must be zero). pub base_hi: u64, /// Must be zero. @@ -67,7 +67,7 @@ impl IdtEntry { pub fn new( handler: VAddr, gdt_code_selector: SegmentSelector, - dpl: PrivilegeLevel, + dpl: Ring, ty: Type, ist_index: u8, ) -> IdtEntry { @@ -83,3 +83,4 @@ impl IdtEntry { } } +*/
\ No newline at end of file |