Skip to content

Commit

Permalink
Export PhysAddrNotValid and VirtAddrNotValid (#163)
Browse files Browse the repository at this point in the history
Those two structs are exported by making the `addr` module public.
  • Loading branch information
samueltardieu authored Jun 19, 2020
1 parent 30f3afd commit 3eb1532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/addr.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Physical and virtal addresses manipulation
use core::fmt;
use core::ops::{Add, AddAssign, Sub, SubAssign};

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ macro_rules! const_fn {
#[cfg(not(feature = "inline_asm"))]
pub(crate) mod asm;

pub mod addr;
pub mod instructions;
pub mod registers;
pub mod structures;

mod addr;

/// Represents a protection ring level.
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[repr(u8)]
Expand Down

0 comments on commit 3eb1532

Please sign in to comment.