From nobody Fri Mar 31 15:57:54 2023 X-Original-To: dev-commits-src-main@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 4Pp4gk5nv6z42vhq; Fri, 31 Mar 2023 15:57:54 +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 4Pp4gk5FV3z4HsR; Fri, 31 Mar 2023 15:57:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680278274; 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=/7mQALmmkOSbiMZ/eeWb9DB24GSPApDFribXP2O/22o=; b=KA1pN2/TkSG35oXOw0T8efl7C/NoN2zUDeHONL8vltroByn1l9tjOaJaBnBcS5u0RoR4eK miwgq4CPZHbEtPJSunrMmETZkezmRABQc9I0S/Hl8iYQW7jpDJn2t4Ehqh33XacdqVd58U tEaaq37vhnygdWoUmUiNb+tAwAuGg3Sw466BVq4BLGG9IEZQZAe4wtWmxmAqIInc+E0cJJ /fzXjhUC3lPtlXZ2rMocxu1yirNkw67ysDD+AwSUhu7Jim7UMOOmfr9xWtXjTmBbhc3MKX d+Gd7MTWbys+ouHTyuqMg3N2JotEWlAeq60fD2FTrWwYcWDnkrGLukORxbL2bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680278274; 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=/7mQALmmkOSbiMZ/eeWb9DB24GSPApDFribXP2O/22o=; b=p8Ae0tRZk+XYmLeQwjSWCW3ndz93pDY1mLJHkOi7hzIVLvw8njox9x5/LKrlFm2/Ye9zsH qp4a79pY4zenV4uaxSGrxOpvlAh/N2v+4IVXc8A7S3PPqz7RLXfFCDvbTT8z6eT4G/l9f5 2sSN+OoliKHakBNIAe/IKIRrs8zIH405SRh6XwC6CCNX8+IbAF0vFonq7/dtPCwT/5pmPd Hn6lH20gYvIjjMvhnz2xlseB0geC5bV/faJtVjeV9rMvqwNWjbA6NYZP+aQt5YT9C5D7MT kTztv5mBKSKkNRywEwzerLt9r09a68KPL7O4DHLcocViLRa5jdd1l9xJ1i4L5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680278274; a=rsa-sha256; cv=none; b=uKXZ1uIyq0e185PtBVOj342EdJqftpgCLtXhsOlsPss1EyUJTcK0Jc3sEyFJw0LTyxUUNg Y7TRfuOtZOdCvBf+rSR+zjBbJckQtcK2nTFn+/mI+Rrraqt3M1x63RTiPws8uWz7uxIQxv U8Wck161ubi6eiBdZ2HUATvo+JViAGSZBdJ+bBw1zhPLjRpS681eEsdTuPztFbSmgS36Ox 2pCOahzcQyG6TB2y7nyoF1PDEPB1UvhAc5u8tA/eQf3DSORfw6TrRz3JiHkiSBPQQ7UDJb 3Hng9G+xqgGwG5BUzermUAMxjkqcUwlksED//7+WCeHVb+WZXLuBXOXvmzRLdA== 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 4Pp4gk4KTsz10Hq; Fri, 31 Mar 2023 15:57:54 +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 32VFvsHP081272; Fri, 31 Mar 2023 15:57:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32VFvsJk081271; Fri, 31 Mar 2023 15:57:54 GMT (envelope-from git) Date: Fri, 31 Mar 2023 15:57:54 GMT Message-Id: <202303311557.32VFvsJk081271@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 1a3cb489e5aa - main - arm64: Move the initial kernel stack out of the init_pagetables section List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 1a3cb489e5aac260eb9f48567dd6c086d62a8ea7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1a3cb489e5aac260eb9f48567dd6c086d62a8ea7 commit 1a3cb489e5aac260eb9f48567dd6c086d62a8ea7 Author: Mark Johnston AuthorDate: 2023-03-31 15:04:37 +0000 Commit: Mark Johnston CommitDate: 2023-03-31 15:57:26 +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 --- 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 a73941a01492..e17f897baeab 100644 --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -877,6 +877,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 /* @@ -907,18 +913,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