Skip to content

Commit 3eb1532

Browse files
Export PhysAddrNotValid and VirtAddrNotValid (#163)
Those two structs are exported by making the `addr` module public.
1 parent 30f3afd commit 3eb1532

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/addr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Physical and virtal addresses manipulation
2+
13
use core::fmt;
24
use core::ops::{Add, AddAssign, Sub, SubAssign};
35

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ macro_rules! const_fn {
3535
#[cfg(not(feature = "inline_asm"))]
3636
pub(crate) mod asm;
3737

38+
pub mod addr;
3839
pub mod instructions;
3940
pub mod registers;
4041
pub mod structures;
4142

42-
mod addr;
43-
4443
/// Represents a protection ring level.
4544
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
4645
#[repr(u8)]

0 commit comments

Comments
 (0)