Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- [make `OffsetPageTable` a type alias](https://github.com/rust-osdev/x86_64/pull/576)
- To migrate, replace `OffsetPageTable::new` with `OffsetPageTable::from_phys_offset` or `MappedPageTable::from_phys_offset`.
- `OffsetPageTable`'s `PageTableFrameMapping` implementation is now public as `PhysOffset`.
- [make range types `!Copy`](https://github.com/rust-osdev/x86_64/pull/581)
- To migrate, use `.clone()` if necessary.

# 0.15.4 – 2025-11-24

Expand Down
2 changes: 1 addition & 1 deletion src/instructions/tlb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ where

/// Execute the flush.
pub fn flush(&self) {
if let Some(mut pages) = self.page_range {
if let Some(mut pages) = self.page_range.clone() {
while !pages.is_empty() {
// Calculate out how many pages we still need to flush.
let count = Page::<S>::steps_between_impl(&pages.start, &pages.end).0;
Expand Down
4 changes: 2 additions & 2 deletions src/structures/paging/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl<S: PageSize> Sub<PhysFrame<S>> for PhysFrame<S> {
}

/// An range of physical memory frames, exclusive the upper bound.
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Clone, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct PhysFrameRange<S: PageSize = Size4KiB> {
/// The start of the range, inclusive.
Expand Down Expand Up @@ -191,7 +191,7 @@ impl<S: PageSize> fmt::Debug for PhysFrameRange<S> {
}

/// An range of physical memory frames, inclusive the upper bound.
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Clone, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct PhysFrameRangeInclusive<S: PageSize = Size4KiB> {
/// The start of the range, inclusive.
Expand Down
4 changes: 2 additions & 2 deletions src/structures/paging/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ impl<S: PageSize> Step for Page<S> {
}

/// A range of pages with exclusive upper bound.
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Clone, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct PageRange<S: PageSize = Size4KiB> {
/// The start of the range, inclusive.
Expand Down Expand Up @@ -394,7 +394,7 @@ impl<S: PageSize> fmt::Debug for PageRange<S> {
}

/// A range of pages with inclusive upper bound.
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Clone, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct PageRangeInclusive<S: PageSize = Size4KiB> {
/// The start of the range, inclusive.
Expand Down
Loading