Date: Mon, 4 Apr 2022 11:06:05 GMT From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2855023d9839 - stable/13 - Remove an unneeded memset from the arm64 pmap Message-ID: <202204041106.234B655t086619@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=2855023d9839eeed05c6bc348e400c7a1334d18f commit 2855023d9839eeed05c6bc348e400c7a1334d18f Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-03-10 19:13:49 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-04-04 09:37:07 +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 (cherry picked from commit 5055ffaeba4f23dab22fba9dace11bf9f3286d74) --- 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 0129457874e2..849db125b027 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -825,9 +825,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204041106.234B655t086619>