Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf2019 committed Aug 4, 2024
1 parent 52c31d7 commit 0c3b832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ impl MappingBackend<MockFlags, MockPageTable> for MockBackend {
new_flags: MockFlags,
pt: &mut MockPageTable,
) -> Option<MockFlags> {
if (old_flags & 0x7) == (new_flags & 0x7) {
return None;
}
let flags = (new_flags & 0x7) | (old_flags & !0x7);
for entry in pt.iter_mut().skip(start.as_usize()).take(size) {
*entry = flags;
Expand Down

0 comments on commit 0c3b832

Please sign in to comment.