aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x86.rs2
-rw-r--r--src/x86_shared.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/x86.rs b/src/x86.rs
index 3c5cd99..d307dd1 100644
--- a/src/x86.rs
+++ b/src/x86.rs
@@ -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,