Browse Source

Merge #34

34: Publify fields on Processor r=IsaacWoods a=gegy1000



Co-authored-by: gegy1000 <gegy1000@gmail.com>
bors[bot] 6 years ago
parent
commit
129d3631e1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/lib.rs

+ 4 - 4
src/lib.rs

@@ -77,17 +77,17 @@ pub enum ProcessorState {
 
 #[derive(Clone, Copy, Debug)]
 pub struct Processor {
-    processor_uid: u8,
-    local_apic_id: u8,
+    pub processor_uid: u8,
+    pub local_apic_id: u8,
 
     /// The state of this processor. Always check that the processor is not `Disabled` before
     /// attempting to bring it up!
-    state: ProcessorState,
+    pub state: ProcessorState,
 
     /// Whether this processor is the Bootstrap Processor (BSP), or an Application Processor (AP).
     /// When the bootloader is entered, the BSP is the only processor running code. To run code on
     /// more than one processor, you need to "bring up" the APs.
-    is_ap: bool,
+    pub is_ap: bool,
 }
 
 impl Processor {