From nobody Thu Mar 10 19:15:02 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 78F061A0B217; Thu, 10 Mar 2022 19:15:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KDzKL31zFz4mGJ; Thu, 10 Mar 2022 19:15:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646939702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FAT7ZoXE4HphTX5UmJ92k1akBchXhAE2YTrijFJE5xY=; b=dclLpMQyo8KapxQz1SSfx/UGPZHQYXIWqhZYlFyLkUpR2axxICxXI5q+srol+q2fjgSeJx UK+gpeDqrXsY9l08qTAQzNi6zyEOU2npU+5o6LiGhcBtFdliANpGefKYeyCh44cWTbVfnY ItO4WIgcWuCAs0ucDO3RhvAZEdfOOnbpJ50yeMjFCgBtbeJ/UIrrRMkJZIoCbYxZy6W9FW Byz2Or60zfXfjKpLLbp50yP44XiyMidVdlh//efZk1p4RRQrQ8YQZFRP69myFcLmtNaPTx zyot9ryN8ajuqmLzmCyDyaWy9Re+RsVscUXgZkcZTfNXi1JyU4yDMXC925tyyg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 407EC27F9; Thu, 10 Mar 2022 19:15:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22AJF2M9064946; Thu, 10 Mar 2022 19:15:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22AJF2M8064945; Thu, 10 Mar 2022 19:15:02 GMT (envelope-from git) Date: Thu, 10 Mar 2022 19:15:02 GMT Message-Id: <202203101915.22AJF2M8064945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 5055ffaeba4f - main - Remove an unneeded memset from the arm64 pmap List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5055ffaeba4f23dab22fba9dace11bf9f3286d74 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646939702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FAT7ZoXE4HphTX5UmJ92k1akBchXhAE2YTrijFJE5xY=; b=fdiWxzlvVyKdqlU2AhT9sWqJk1pz5c7J7Oo87keZkCQcVI0wG82xOyn7D3ifJXtsH1R/FI 7sTtZt/D+wi3DPxvL0hTr0r5CGlgxlhkCT3VXT6ANbM4CYTdHkTBNS4ZFl82TzCaeug+6y YsCouoefRVedoAgZGSwejsjmROfOPmFtqg8/q4QL7UsYYeWBseYY6msA+twY8mwRzTMKm/ Jl+vTdczYQLtCydScUGGv1WEtMLuQl9BJpoIyeCw/Q00MNPQExyoGwmtyPxol1XVbCC5u1 +0yo/NBXXDS5OBct/ejVwXZezQQr//Hp5lrIT7LiITik0q8tDoOik84utmzlMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646939702; a=rsa-sha256; cv=none; b=xiG6L+y7k5CazMdFy7PR/nhJFH2WeQTrjNb3hiaRsvyvh3brABDxddMvzf4o1ESF0D4Pmx i17M/vvXQTqgew7NN7ZKUPJetMMwq1naXO1ieZyXeO4Yf5FLzDuX6Ba+kB383HFceB1yql H/EybTc97tcKiEVxmhchNayvE/A08JWMVh+03JUYHE28suZLYdo6TutKJ9ItG6R3QkBZaf EM/RvHx130I3jGdLJa8/aWvohOO9zAQvkY+St/PkL1cjB5iy85c4P88SbNsia0o1xgoCJ9 EyuU3nIBT5Im3HFxFM3Wb5HI7ApIE+Z1LDAByvQvhwfM2hK49Jk5me4bCGf5tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=5055ffaeba4f23dab22fba9dace11bf9f3286d74 commit 5055ffaeba4f23dab22fba9dace11bf9f3286d74 Author: Andrew Turner AuthorDate: 2022-03-10 19:13:49 +0000 Commit: Andrew Turner 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;