Skip to content

Commit

Permalink
Make the interrupts field private
Browse files Browse the repository at this point in the history
To avoid the confusion that the index starts at entry 32. Access is still possible through the implementations of the Index and IndexMut traits.
  • Loading branch information
phil-opp committed Jun 6, 2018
1 parent b456dae commit 7e80300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/idt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ pub struct Idt {
/// external interrupt was recognized.
/// - If the interrupt occurs as a result of executing the INTn instruction, the saved
/// instruction pointer points to the instruction after the INTn.
pub interrupts: [IdtEntry<HandlerFunc>; 256 - 32],
interrupts: [IdtEntry<HandlerFunc>; 256 - 32],
}

impl Idt {
Expand Down

0 comments on commit 7e80300

Please sign in to comment.