Pin PhysBorrowed head/tail UserScheme grants too.

This commit is contained in:
4lDO2
2023-07-04 12:29:52 +02:00
parent 329d60848c
commit ba62c0606e
3 changed files with 26 additions and 17 deletions
+3
View File
@@ -97,6 +97,8 @@ impl MemoryScheme {
_ => (),
}
let is_pinned = false;
Grant::physmap(
Frame::containing_address(PhysicalAddress::new(physical_address)),
PageSpan::new(
@@ -106,6 +108,7 @@ impl MemoryScheme {
page_flags,
dst_mapper,
dst_flusher,
is_pinned,
)
}).map(|page| page.start_address().data())