Skip to content

Commit

Permalink
Add types to build MAIR values.
Browse files Browse the repository at this point in the history
These let a constant MAIR value be built with a builder pattern and
named constants, which should be more readable and safer than using
bitwise operations directly. Display implementations are also included
to format MAIR values in a human-readable form.
  • Loading branch information
qwandor committed Aug 9, 2024
1 parent 0f95559 commit cca2ca0
Show file tree
Hide file tree
Showing 3 changed files with 383 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### New features

- Added `mair` module with types to build MAIR values.

## 0.7.1

### New features
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@
pub mod idmap;
#[cfg(feature = "alloc")]
pub mod linearmap;
pub mod mair;
pub mod paging;
#[cfg(feature = "alloc")]
pub mod target;

#[cfg(feature = "alloc")]
#[cfg(any(test, feature = "alloc"))]
extern crate alloc;

#[cfg(target_arch = "aarch64")]
Expand Down
Loading

0 comments on commit cca2ca0

Please sign in to comment.