From nobody Tue Sep 27 14:03:09 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 4McLtj447Nz4d4Xn; Tue, 27 Sep 2022 14:03:09 +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 4McLtj3ZXRz3YJT; Tue, 27 Sep 2022 14:03:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664287389; 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=ZOVsBnrM1ctugJPc/ZYpLUJmDAHBDnOkiQUKApvhop8=; b=qUg3SzXnBFqrq81sCCJ/g2aN1vd0QJvy+E81seWhK2r7fknD8+buCw/aJKQomASWPxAOEN hgc92ufNTRK3kHfKr5PVjZtgLmYvpE+ZQu/o8oOpnZkaOV7BOVenfaeBoMoPI/Gyk1BXbP YLoIeUn9LcwDLBpIP7VUzFgmONQIwJiOUSBIf38WN3Bic7KmOKvF41XfxKLlay1EtvedIK WW/hTjGYzwN4iCZHDp/noqAGaNsLKyQ+OjUxVHO8YxfxBvygUAHm+sAQwjN29Fu+T0Vapa GaazQbEHAiKjHhxHOTgtyievTFsbozDVDtGOXhjQO45RGP6XpSWbXxTWNyqEVg== 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 4McLtj2XgQz189R; Tue, 27 Sep 2022 14:03:09 +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 28RE39b5028256; Tue, 27 Sep 2022 14:03:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28RE39Fe028255; Tue, 27 Sep 2022 14:03:09 GMT (envelope-from git) Date: Tue, 27 Sep 2022 14:03:09 GMT Message-Id: <202209271403.28RE39Fe028255@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: 78aeba26e8d0 - main - Reorder pmap_bootstrap_state to reduce holes 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: 78aeba26e8d05c251ea2fb2b168006e9612cfe31 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664287389; 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=ZOVsBnrM1ctugJPc/ZYpLUJmDAHBDnOkiQUKApvhop8=; b=IiudItjBjEBGRA9PYGOEEghL5UMbobICyHAG6bVOS8NJEDYF6pEbjWEgrS/ZDSLahoZ8KY 6pY9YP0mahMjxJn7XhxIfs7horGqpJeNGLs0BGgiUMiCbuzKwULqwFDkDXJb6lQ2gtHnCw P2Dt/Cox/kAuSWvjewVRdPDNc66UxDhQHGDEiOAHs5Y1vtUVmJ8iM3Xr/uR/1QJrBcaAuw tGdfc3KO4fkxXts1LCYlzVXgrKIAFSKEhALOPIqCvRXrq2iSwW9oeLxuBPf6nD8UC4rGAr RdYaTu2iQ/8MN+cOXhdHep0/6imLxwXlHZTUmlFotsfomypgCZCaCVuD8ynVFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664287389; a=rsa-sha256; cv=none; b=wjXwV2gu3AzbEUXoXEZdpK9zs+cXPTG9f0h1nF9DI3PWd76gVKZ0kakDg6+QA+aFILWZ8N T0XkVPNejTO1EEHu/7WhTRuI8zI1iazVYthV+G52dLzvSY+uEIUcXCw5NcdoZbJH3BY9L3 ztpFIW7Bz0ioejUNPZLAqUF2j3igA7+8hE3YC/CMM7A8OTVlXrNH2XlitFCOl/7pvtA/nx YDhb2GwOAd4sM9UJWcYlzPwYudSH+O0g8pOU/qvJXJgK2OlCF7Gdf1onqWdfLvBexUnSWO KrPmV8PUhPy3LD2jE/Qia3ywACwrPDZn9zdhoZ5hFJfiUw8inqVcImND8U+ZMA== 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=78aeba26e8d05c251ea2fb2b168006e9612cfe31 commit 78aeba26e8d05c251ea2fb2b168006e9612cfe31 Author: Andrew Turner AuthorDate: 2022-09-26 14:41:40 +0000 Commit: Andrew Turner CommitDate: 2022-09-27 13:47:30 +0000 Reorder pmap_bootstrap_state to reduce holes Reduce holes in pmap_bootstrap_state by moving freemempos after the pointers as they are more likely to change size in any future ABI. Sponsored by: The FreeBSD Foundation --- sys/arm64/arm64/pmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index ba2e3cc3392f..dce52034f27c 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -818,16 +818,16 @@ pmap_early_vtophys(vm_offset_t va) /* State of the bootstrapped DMAP page tables */ struct pmap_bootstrap_state { - vm_offset_t va; - vm_paddr_t pa; pt_entry_t *l1; pt_entry_t *l2; pt_entry_t *l3; + vm_offset_t freemempos; + vm_offset_t va; + vm_paddr_t pa; pt_entry_t table_attrs; u_int l0_slot; u_int l1_slot; u_int l2_slot; - vm_offset_t freemempos; bool dmap_valid; };