diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x86.rs | 2 | ||||
-rw-r--r-- | src/x86_shared.rs | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -7,7 +7,7 @@ use core::mem::size_of; mod x86_shared; bitflags! { - flags GdtAccess: u8 { + pub flags GdtAccess: u8 { const Accessed = 1 << 0, const Writable = 1 << 1, const Direction = 1 << 2, diff --git a/src/x86_shared.rs b/src/x86_shared.rs index 7d63a66..4c1169f 100644 --- a/src/x86_shared.rs +++ b/src/x86_shared.rs @@ -1,7 +1,7 @@ #![allow(non_upper_case_globals)] bitflags! { - flags Flags: usize { + pub flags Flags: usize { const CarryFlag = 1 << 0, const ParityFlag = 1 << 2, const AdjustFlag = 1 << 4, @@ -24,7 +24,7 @@ bitflags! { } bitflags! { - flags Cr0: usize { + pub flags Cr0: usize { const ProtectedMode = 1 << 0, const MonitorCoprocessor = 1 << 1, const EmulateCoprocessor = 1 << 2, @@ -40,7 +40,7 @@ bitflags! { } bitflags! { - flags Cr4: usize { + pub flags Cr4: usize { const EnableVme = 1 << 0, const VirtualInterrupts = 1 << 1, const TimeStampDisable = 1 << 2, @@ -62,7 +62,7 @@ bitflags! { } bitflags!( - flags Features: u64 { + pub flags Features: u64 { const Fpu = 1 << 0, const Virtual8086 = 1 << 1, const DebugExtension = 1 << 2, |