git: 5055ffaeba4f - main - Remove an unneeded memset from the arm64 pmap

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Thu, 10 Mar 2022 19:15:02 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=5055ffaeba4f23dab22fba9dace11bf9f3286d74

commit 5055ffaeba4f23dab22fba9dace11bf9f3286d74
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-03-10 19:13:49 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-03-10 19:13:49 +0000

    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
---
 sys/arm64/arm64/pmap.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
index c11a13e13866..3ad50e57d8e0 100644
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -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;