From nobody Tue Apr 11 14:10:36 2023 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 4Pwnms1MWCz44w0n; Tue, 11 Apr 2023 14:10:37 +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 4Pwnmr6qVxz4KR4; Tue, 11 Apr 2023 14:10:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681222237; 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=Mb1veyN7AiWPzRBcnZcS7z9xmvF/aohZflRZ3W2Jhpc=; b=TUcQDnJLeXhDJc7A3qKrCpEvBX5yPENs3j/6duAzXS/wuFKZssr5bamIN2IKo/njf2CoJ4 L7wZgMMO/vAKuNG06RIQMgoUuYqLJkopjng678FzzNZoOBZLzhFKtrkrYKwfiAjBSWowtL 2sMlfrRFR299x9+wWxSt+xZ2WieikiAWK5+n9q28NU8rPMnruOduFvlUK0UsFrOqmkkRz4 G0aRHcQUwWacWQnmz7ZtaguhSdHfjmjo+eXfqJSELwv4Ds2vl+iMabeqUIcOb1osSWFIEJ UndIqvYgSbjwRAYx04pW52FkCbE37iu7100j7qMWcrFdSsdYYxWbVYLqkF30ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681222237; 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=Mb1veyN7AiWPzRBcnZcS7z9xmvF/aohZflRZ3W2Jhpc=; b=ZQ3jgM8Q4pgvBSaO5GXbNrQRseFgKIqy3ztwCNJUlggDg7WbOQqgJrdLzVjbQkgGwBwoAw 7RSw7DpgVv8ALCOrrn2rX7q9l9VCVcs662kNFw4lJi8v2nb4VFXAhCkaFJNqF3eH/uUfAa XlKFcgMCx6/s0pM6eKX51/gObRN0Oc19u7GPHf7edj1XhU34IpSanXtBYTARBwwczqlLr2 Nr6w1Cq/yqrO6W/uZ5LAdwlQpBTHQT1FGyPobDbXZxHlyQyu2xD8H+UWRxgIBA902mEBEB Pj0wZit1CVXFXQ83Fzsn6ICyI7xRK6ISNKpOPv7oZZ80hvZKqgJG+iomYpYdpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681222237; a=rsa-sha256; cv=none; b=Xsi/y4XUzsjOEMLYsDU8KameGNwkr2V5TVngbN+dunbLLFpWQgP/wVYhfcD8D/yNgWHMKp aNO2++S0xMtUW/bUF5ptZbZDFW9n4A/rmDos0QUuVcdBW4KE6aQqtilV0HVEdAqyDWAOLd v6pz8GbT4JabdP3jF5wjS3ani7u87/lqiOmJmXmbv+Sy5wTVj/r5dfkyOgagjw5LNgnLeh IW3Piu5/cqxyVhb96qouGeooYYwwQ+3ovukISeFoRE6COgHvZRrGnHQxfrSNTagy0RsUen 0YDqoPHstI5JFQgPD9pcmzb5sfcfN9tKlsxIJ3vYNsfw0JH4JE4tlpEqY5MMNA== 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 4Pwnmr58FvzKk3; Tue, 11 Apr 2023 14:10:36 +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 33BEAaB7091081; Tue, 11 Apr 2023 14:10:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33BEAaGS091080; Tue, 11 Apr 2023 14:10:36 GMT (envelope-from git) Date: Tue, 11 Apr 2023 14:10:36 GMT Message-Id: <202304111410.33BEAaGS091080@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 263fa9ba098e - stable/13 - arm64: Move the initial kernel stack out of the init_pagetables section 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 263fa9ba098e8fbd6be233d2a4fdff7d5eeec876 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=263fa9ba098e8fbd6be233d2a4fdff7d5eeec876 commit 263fa9ba098e8fbd6be233d2a4fdff7d5eeec876 Author: Mark Johnston AuthorDate: 2023-03-31 15:04:37 +0000 Commit: Mark Johnston CommitDate: 2023-04-11 14:09:45 +0000 arm64: Move the initial kernel stack out of the init_pagetables section init_pagetables is mapped into the segment containing the BSS, but does not get zeroed by locore. It is used for bootstrap page table pages. It happens that the bootstrap kernel stack is also placed in that section, but there's no reason it shouldn't live in the BSS, so move it there. No functional change intended. Reviewed by: andrew MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D39367 (cherry picked from commit 1a3cb489e5aac260eb9f48567dd6c086d62a8ea7) --- sys/arm64/arm64/locore.S | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S index bcf60ea0540e..87d86d8ac994 100644 --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -750,6 +750,12 @@ ENTRY(abort) b abort END(abort) +.bss + .align PAGE_SHIFT +initstack: + .space (PAGE_SIZE * KSTACK_PAGES) +initstack_end: + .section .init_pagetable, "aw", %nobits .align PAGE_SHIFT /* @@ -774,18 +780,11 @@ pagetable_l0_ttbr0_boostrap: .space PAGE_SIZE pagetable_l0_ttbr0: .space PAGE_SIZE - pagetable_end: el2_pagetable: .space PAGE_SIZE - .align 4 -initstack: - .space (PAGE_SIZE * KSTACK_PAGES) -initstack_end: - - .text EENTRY(aarch32_sigcode) .word 0xe1a0000d // mov r0, sp