Skip to content
Merged
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
6 changes: 3 additions & 3 deletions src/binary/level_4_entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl UsedLevel4Entries {
used
}

/// Mark all p4 entries in the range `[address..address+size)` as used.
/// Marks all p4 entries in the range `[address..address+size)` as used.
///
/// `size` can be a `u64` or `usize`.
fn mark_range_as_used<S>(&mut self, address: u64, size: S)
Expand Down Expand Up @@ -109,7 +109,7 @@ impl UsedLevel4Entries {
}
}

/// Returns a unused level 4 entry and marks it as used. If `CONFIG.aslr` is
/// Returns an unused level 4 entry and marks it as used. If `CONFIG.aslr` is
/// enabled, this will return a random available entry.
///
/// Since this method marks each returned index as used, it can be used multiple times
Expand Down Expand Up @@ -142,7 +142,7 @@ impl UsedLevel4Entries {

/// Returns a virtual address in an unused level 4 entry and marks it as used.
///
/// This functions call [`get_free_entry`] internally, so all of its docs applies here
/// This function calls [`get_free_entry`] internally, so all of its docs applies here
/// too.
pub fn get_free_address(&mut self, size: u64, alignment: u64) -> VirtAddr {
assert!(alignment.is_power_of_two());
Expand Down