From patchwork Wed Feb 11 14:32:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1816 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820460; bh=YYYgw/Pn92SV0AXZUIvDebJSkn9e0G9bIESFrfal65o=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LuPNQ1W63I45dqIJvoKCMp4yXuPxuLxQsjnLcimJfmzVoTYZIAgdax/F3H7Jj8YnW fGwXbdoQW7dtvjA+YZlQwpSM09S0qFcbbLHQOsU4K6iiwI8U5eNOrUnMtwsFowMubX 86FOllUNph6RQWrtONpaygaW6A3aHyACWup79f/azHpNe9XkhN/S/vR7cRU1TQpKCT P1wtDZ4FZuLt3F80v+eCm7Uzqeqh+JRtragzblHxKxWWrAb3NTqr+kTLJz6pfmcDqk zqX1qfbqMavB7hdMRhR0AjriMtOAuriAoeBpDYCA/fyhmyj0G9AKw7zuYnoQT3Alyy S9y9a+zloS/sQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6571769A90 for ; Wed, 11 Feb 2026 07:34:20 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id achSwu1BlWup for ; Wed, 11 Feb 2026 07:34:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820460; bh=YYYgw/Pn92SV0AXZUIvDebJSkn9e0G9bIESFrfal65o=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LuPNQ1W63I45dqIJvoKCMp4yXuPxuLxQsjnLcimJfmzVoTYZIAgdax/F3H7Jj8YnW fGwXbdoQW7dtvjA+YZlQwpSM09S0qFcbbLHQOsU4K6iiwI8U5eNOrUnMtwsFowMubX 86FOllUNph6RQWrtONpaygaW6A3aHyACWup79f/azHpNe9XkhN/S/vR7cRU1TQpKCT P1wtDZ4FZuLt3F80v+eCm7Uzqeqh+JRtragzblHxKxWWrAb3NTqr+kTLJz6pfmcDqk zqX1qfbqMavB7hdMRhR0AjriMtOAuriAoeBpDYCA/fyhmyj0G9AKw7zuYnoQT3Alyy S9y9a+zloS/sQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 52A1469A89 for ; Wed, 11 Feb 2026 07:34:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820459; bh=MQJkSf43kvCwVrJXGvMHsgc5XbC9h9Hq6z4JSMVS7Jk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fy+yQ83SJb1yi5f4VBEDKhqp71xk8AVYNEjxqKvzi5rsnY9a4G5EZUynxyQlBBT/y XUpYZJvyxtF4jFlZvZXOd4X6D8WzTNGa9mWm9m6/m8eeeixSKlrx1M/VydxlWBHJqQ f+6snWlmDEpRUe7AUN1x1erNMZdN6RU1VRVmYyko02GqttwAgxtjiiBnm1pRv4jeR9 ChsVdfo9a6srwFjC/Znz98yl6hdsOj4ztNIAxo2Y+m/eRPQ2N0XUNQ1mGoIEJAd9z6 CcKzWV45KRMpLtxVDFKZ+88khoDjS7GsChczlDnhjBcWDXDz/xHHl/Fp+djliJhvXm +iEyTtAi/88Mg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 45F31699BF; Wed, 11 Feb 2026 07:34:19 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Zzy3XlqabVzq; Wed, 11 Feb 2026 07:34:19 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820455; bh=T0Hx3NRziYdZAcesit1EGdHXnTlfLL8SElSRneI+SDI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fph1CCWG+ujHZURFPg4nEheOzBQYjhZUbNhg/nN+aKSWDwYL0kz3NOtkEUV7VFRlc m4Ed74YWi0RlgWKxkm+p85U6ZzVWEn7JcaZtAwA60QvKPs1uS5DGLuKKmGOCnQGh6K HzbeGTzTOoNCVApq+8r0t8SPtVe0RZCsrPmAHSPtFgQQFOTn/WXbi/oXZUGWCiN93T 0syRje3u+AWPqIFXWDdw9tgPUlLsnXebekjSIx3lgyPKN9K+tmmtn7lUggdqEsXL5z bGo/FD50Abb3tLpKB8LurrCr+GhiWULUooJIKMKSDF05Wg8HpJs2QbsuDsnqH5i41z MqMZp3LZT+l9A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F16EF699D6; Wed, 11 Feb 2026 07:34:14 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 11 Feb 2026 07:32:53 -0700 Message-ID: <20260211143309.1183113-6-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260211143309.1183113-1-sjg@u-boot.org> References: <20260211143309.1183113-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: AJFO6RMZ52LKOOP5UWGEQUJUC5EDLMJH X-Message-ID-Hash: AJFO6RMZ52LKOOP5UWGEQUJUC5EDLMJH X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 05/12] x86: Exclude X86_32BIT_INIT for 64-bit builds List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass X86_32BIT_INIT is currently selected whenever X86_RESET_VECTOR is set and SPL is not used. This is wrong for 64-bit builds without SPL, which handle the 32-bit-to-64-bit transition in their own startup code rather than using the 32-bit init path. Add !X86_64 to the default condition so that 64-bit builds are excluded. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index a7d616a401d..db3f16a7222 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -208,7 +208,7 @@ config TPL_X86_16BIT_INIT config X86_32BIT_INIT bool depends on X86_RESET_VECTOR - default y if X86_RESET_VECTOR && !SPL + default y if X86_RESET_VECTOR && !SPL && !X86_64 help This is enabled when 32-bit init is in U-Boot proper