mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Remove an unneeded memset from the arm64 pmap
There is no need to zero pagetable_dmap as we already did it when creating the page tables in locore.S Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
ba3b602001
commit
5055ffaeba
1 changed files with 0 additions and 3 deletions
|
|
@ -867,9 +867,6 @@ pmap_bootstrap_dmap(vm_offset_t kern_l1, vm_paddr_t min_pa,
|
|||
l2 = NULL;
|
||||
prev_l1_slot = -1;
|
||||
|
||||
#define DMAP_TABLES ((DMAP_MAX_ADDRESS - DMAP_MIN_ADDRESS) >> L0_SHIFT)
|
||||
memset(pagetable_dmap, 0, PAGE_SIZE * DMAP_TABLES);
|
||||
|
||||
for (i = 0; i < (physmap_idx * 2); i += 2) {
|
||||
pa = physmap[i] & ~L2_OFFSET;
|
||||
va = pa - dmap_phys_base + DMAP_MIN_ADDRESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue