mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 07:42:26 -04:00
arm64: correct physmap bounds in pmap_bootstrap()
physmap_idx now contains the raw value; we should not multiply it.
Reviewed by: markj
Fixes: d03e1ffbea ("arm64: Remove some redundant calculations...")
This commit is contained in:
parent
995730a635
commit
32d2a1de3d
1 changed files with 1 additions and 1 deletions
|
|
@ -1215,7 +1215,7 @@ pmap_bootstrap_dmap(vm_paddr_t min_pa)
|
|||
dmap_phys_max = 0;
|
||||
dmap_max_addr = 0;
|
||||
|
||||
for (i = 0; i < (physmap_idx * 2); i += 2) {
|
||||
for (i = 0; i < physmap_idx; i += 2) {
|
||||
bs_state.pa = physmap[i] & ~L3_OFFSET;
|
||||
bs_state.va = bs_state.pa - dmap_phys_base + DMAP_MIN_ADDRESS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue