From nobody Fri Apr 17 16:57:58 2026 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 4fy1KL6pPxz679FC for ; Fri, 17 Apr 2026 16:57:58 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fy1KL633Sz3fw6 for ; Fri, 17 Apr 2026 16:57:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776445078; 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=Pc3xUDDH33cg3f7ctOC1IsPeeSshVVe+RnXnLalISo8=; b=PMFBK5SWB/tCyJAC+NPYkcCdyz0IO+1btiLLLk/DurKMGA6rfv1CXRwCWTZzDpwoU1wtQI 9MgEkZunUnsGpkNwzdL2Ly9ku36D+rPpPlrCVviwY6SVvL6Lfh55FfI/QypL3O3MJLJe83 V7b1KvejUdKIftycWabOSbcRAbkQVsIsrKOEBgQGeD68i9HSbCFZczl6brfZ2v4ngzh9Vg +A5qQbSldX9+D/M7s8YeUnbICkxtXagohr2520YcTOKOFOZW8Z5PhTKu/EwVkr8coadFi1 q7HSYAxzHmfCot6E2zzWomoWlpu0nZEPmP9un3V19FKDUT9i0DW7ebWjYB6Alg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776445078; a=rsa-sha256; cv=none; b=MFqmfXpAl8gh1sv4oUDcPXo4FCwGoJASeoNQQcy07ec9RSKk+ZgJJtbbxm/NF8/XRGXQEM v30uh25QerFVmuWyDEc/gdO58moDBUZ1VoClmrdQYk06XDGWzWDuX7z5diynbuxGFw6TP/ ACX/B39IaEBOrT3qOFmVDk/oDYiXoPU/OeBzjjcEZkh+ByQnhLVABSsVFt2nwUCNXT5tGk DO39OwNdpdxl1a9AHyWkVmyMhK1Nwt+EYN9Pm3mls+CSSi9a0PHlJ9/QnKK3l9DkhVnjN2 6qcmzB4dmWOoprOeA7zIc4cn16rxUZW2oSijGDgXG2+Zbd+YE9r+NtYSk0iKSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776445078; 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=Pc3xUDDH33cg3f7ctOC1IsPeeSshVVe+RnXnLalISo8=; b=dWd3fDWgreO+dUjGtpnK8cf9/0bLNIjfp8/TFPu5UEVdVFuJJ6Ne/qZmeXFbmCohVCwHFy Js3pH+Z0qVZcRGoX8opQYsJesQSPZIbPgqt7pnH7YHkyjVEs/85bZpKKxKvaS2kCZ3lxqc l/2iaPvMsYgCiPWDWSZ3ygHp2W7S9cEaubyfZpebbL0N+m1M08VZtxjD1sdP1V4KVsXL19 TFiFmP7it9GfcpgZRaCXswxjjQoahwCSWtnXKOu3nKBR6WRuS5BOvN2vsml96EIsiCm62c Jojf8b9OO6zngoFZlPnWS1t+3irRvvCOtr0y0rlCVztgqHG9Ab3o1zjYGTU8aQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fy1KL5N3gz123w for ; Fri, 17 Apr 2026 16:57:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31c1b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 17 Apr 2026 16:57:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Lexi Winter Subject: git: eb0279550d52 - main - boot1.chrp: Improve comment for the SLOF hack 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ivy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb0279550d52962241b4178101cd7f7d732eb682 Auto-Submitted: auto-generated Date: Fri, 17 Apr 2026 16:57:58 +0000 Message-Id: <69e26696.31c1b.7490e442@gitrepo.freebsd.org> The branch main has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=eb0279550d52962241b4178101cd7f7d732eb682 commit eb0279550d52962241b4178101cd7f7d732eb682 Author: Lexi Winter AuthorDate: 2026-04-17 16:56:33 +0000 Commit: Lexi Winter CommitDate: 2026-04-17 16:56:33 +0000 boot1.chrp: Improve comment for the SLOF hack Since this original comment was written, the actual issue in SLOF was diagnosed and documented in commit 424089a0fc, which fixed it for loader(8). Update the comment in boot1 to be more informative to future readers. MFC after: 3 days Reviewed by: jhibbits, adrian Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D56470 --- stand/powerpc/boot1.chrp/boot1.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/stand/powerpc/boot1.chrp/boot1.c b/stand/powerpc/boot1.chrp/boot1.c index 1a546f3473e2..1bb06bf82983 100644 --- a/stand/powerpc/boot1.chrp/boot1.c +++ b/stand/powerpc/boot1.chrp/boot1.c @@ -102,14 +102,11 @@ ofwh_t bootdevh; ofwh_t stdinh, stdouth; /* - * Note about the entry point: + * Our entrypoint. * - * For some odd reason, the first page of the load appears to have trouble - * when entering in LE. The first five instructions decode weirdly. - * I suspect it is some cache weirdness between the ELF headers and .text. - * - * Ensure we have a gap between the start of .text and the entry as a - * workaround. + * A bug in the SLOF shipped with some versions of QEMU causes the first + * 32 bytes of .text to be wrongly byte-swapped when loading LE programs. + * As a workaround, we add some padding at the start of the text section. */ __asm(" \n\ .data \n\ @@ -118,7 +115,7 @@ stack: \n\ .space 16384 \n\ \n\ .text \n\ - /* SLOF cache hack */ \n\ + /* SLOF workaround */ \n\ .space 4096 \n\ .globl _start \n\ _start: \n\