mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-14 03:17:05 +00:00
hv_vm: Fix bug when making L2 mappings
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
52823eaab6
commit
8d5596a1a1
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ int hv_map(u64 from, u64 to, u64 size, u64 incr)
|
|||
}
|
||||
|
||||
// L2 mappings
|
||||
chunk = ALIGN_DOWN(size, MASK(VADDR_L3_OFFSET_BITS));
|
||||
chunk = ALIGN_DOWN(size, MASK(VADDR_L2_OFFSET_BITS));
|
||||
if (chunk && (!hw || (to & VADDR_L2_ALIGN_MASK) == 0)) {
|
||||
hv_pt_map_l2(from, to, chunk, incr);
|
||||
from += chunk;
|
||||
|
|
Loading…
Reference in a new issue