From nobody Fri May 29 22:57:12 2026 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 4gRzJT3rHnz6gDZH for ; Fri, 29 May 2026 22:57:13 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRzJS5tmNz4NCD for ; Fri, 29 May 2026 22:57:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780095432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZPmwa1lJWmoiEzslgFO+WpHzls7xRZQRh8QqukZwOJY=; b=i8VPmeryC71gOq+Sm6XsTvrn9NUDO+iK3WBKzcOOMzuuW5cnnxz4v0yVpKqKwrcCcq8kWh mDo9VLmYAwWgE+LRAfGqXl3xUj29OG+hECpt2QsD0qbCpPgZjbGnvwQ9qyv2fzZ0n5N1+s hOHUnOQFHkp1x2iEv9C+wTZgVp8fI1SSM+zWN408bXZyrtbDvuyeLWuMpD2B0fqc000xqo X3OtzsLrqNXLUVkX3S9SHUTONhHYLQNeg2Exl3Fpe+CfDfrG5jD5RkImDxUwg2/qVmiPpM fjp/NMDWQmDk6/m5d587qgvVpelqFo2aU/bo4H9eLxBlVdHTPnL/GVN++dCFjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780095432; a=rsa-sha256; cv=none; b=mV2d2I/uuWh3I+DfLq7YsrPCDJMMiZ3bylkoC8/eUMI8zTWxG1mcnPNe6aavKPNA/orSTJ QkYpPm03BdYElqbH08wEWFwg89t7aRTTYakqC0BXIlAC1dgEEDi5NC8P0z4eD6q9yN/ss4 QHI70ErBr/hCdPT87SrXfE9yhZDETs9o/eHWG0eGPmr2g8Wq4hnKQaV0gY2h8V9i0o8fXS vI7OnufH8BKkU2wdWn4Hoz6YlwQmOUr9Kgjd0Fz/o2V05AcLj1HKsOE9EO6z7gyPVP5EQv 0e6K9OSTt10fiXwsdwA+viOBZ6BUnSfhbnXR0n16C6J6Z6J8/jDq6cGC1DCvfA== 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=1780095432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZPmwa1lJWmoiEzslgFO+WpHzls7xRZQRh8QqukZwOJY=; b=rUESHfyRkGFCZaRi7aTwflU8yjWGF8v2ZmF4cNazBnIwrGgv/h3O4azQmcvirLEuj/w3tb v46uiSj76oOJlKP3Ch9p/PE2PnWpe9cXCkzgY/s1gVm0kta+f3BdjUD2mfPYnb/TS94dbR LFvBFVS0PtPZqpauTgV5RGxTJq75viFC8g4+yV7bAoyN6LXeI0FbvCRF0Aj36mcNUhDWus BuoLemAl++14HRMjrqVS6NxIyrYOevpF1HJbExbmwqC5UPwhl8nXPANHTWhJl45TxxBUWx 7TZHVdf84N+CtujAN8Mqkzh7YEsQyQ8IqUDDk2VBZiiZtiN5ldDEgP+ReMZqnw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRzJS4wpLzt0c for ; Fri, 29 May 2026 22:57:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 403d8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 22:57:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Lexi Winter From: Dimitry Andric Subject: git: 8e1a9532ce19 - stable/14 - boot1.chrp: Improve comment for the SLOF hack 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8e1a9532ce19e14a63e15242e8558ee6d0458278 Auto-Submitted: auto-generated Date: Fri, 29 May 2026 22:57:12 +0000 Message-Id: <6a1a19c8.403d8.1658c56c@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8e1a9532ce19e14a63e15242e8558ee6d0458278 commit 8e1a9532ce19e14a63e15242e8558ee6d0458278 Author: Lexi Winter AuthorDate: 2026-04-17 16:56:33 +0000 Commit: Dimitry Andric CommitDate: 2026-05-29 22:56:56 +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 (cherry picked from commit eb0279550d52962241b4178101cd7f7d732eb682) (cherry picked from commit 66f55b90b6bcbbf3c26b2da7f56d17052e39018f) --- 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 cdacb05c31ce..43a28f4f3116 100644 --- a/stand/powerpc/boot1.chrp/boot1.c +++ b/stand/powerpc/boot1.chrp/boot1.c @@ -100,14 +100,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\ @@ -116,7 +113,7 @@ stack: \n\ .space 16384 \n\ \n\ .text \n\ - /* SLOF cache hack */ \n\ + /* SLOF workaround */ \n\ .space 4096 \n\ .globl _start \n\ _start: \n\