Skip to content

Commit

Permalink
Merge pull request #525 from adavis628/master
Browse files Browse the repository at this point in the history
Add `MapperFlush` method to get page
  • Loading branch information
Freax13 authored Dec 24, 2024
2 parents 00f897c + 50dff1f commit a1ffaad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structures/paging/mapper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ impl<S: PageSize> MapperFlush<S> {
/// Don't flush the TLB and silence the “must be used” warning.
#[inline]
pub fn ignore(self) {}

/// Returns the page to be flushed.
#[inline]
pub fn page(&self) -> Page<S> {
self.0
}
}

/// This type represents a change of a page table requiring a complete TLB flush
Expand Down

0 comments on commit a1ffaad

Please sign in to comment.