From 5055ffaeba4f23dab22fba9dace11bf9f3286d74 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 10 Mar 2022 19:13:49 +0000 Subject: [PATCH] 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 c11a13e1386..3ad50e57d8e 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;