Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA5A8C6FA99 for ; Fri, 10 Mar 2023 20:51:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 842D585F9A; Fri, 10 Mar 2023 21:49:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Xp1m02Us"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9826B85F71; Fri, 10 Mar 2023 21:49:18 +0100 (CET) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6298685F77 for ; Fri, 10 Mar 2023 21:49:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x136.google.com with SMTP id h7so3668295ila.5 for ; Fri, 10 Mar 2023 12:49:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678481351; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kSWUtkt12Ze71R7K5Y4dLIbe9LnBNE+wFwWSPL4wkQg=; b=Xp1m02UsX8f+NB1qEgfY6F0MOm3CXG2aOfnd4vcylOBC8gGUGYSm84LLQsuVGdHN6F XDe4LhccpGDQPu6ctRN9VOKxzwMm4gWJFbzhOnUHlTWCG1a6CelGsPxbvniCDOjH6/UN 9tB6C+UzDBO8s1EU5qpduEtjqVnmAS97ivzuE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678481351; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kSWUtkt12Ze71R7K5Y4dLIbe9LnBNE+wFwWSPL4wkQg=; b=4S4wGVioE3LBMoRKEFWtZXLKkRcKBVKw6i1Wyuz+5rZs3Jkb6eW+2Qs38vK61tEAXa 7Yl+db7RPo2R6ke+9SJhVD1CTpJAqUGrVwFaMZHZHuI7I6w7l4t46SVE0y7ap78PrO8v RmNGjJeK2vbiTaIecunoOuqvr2wJRFahvnCaX49Zb3zuS/UwWF1fkbmRzf8/7a4JDEkb poPHDBv6rqFR8lI+qjVd17S/60vy1UmGe21Odpdo/pgXFI4baifRJctyAScNbX5+hr8I KLY6mz5stNXA4UiYuGv4ZMkrum8exXzymM20oJt5ZuBRHylK2BhV89QaIZ/kvEDLHxnB 8UGw== X-Gm-Message-State: AO0yUKWZYjQDTRBTezwTLPxHcjqvJ8hKDD85W7usLGGc55gSxXkqqIaB iAfj1FT0kRLhm0A85Fqcu1hWs+K1Vq3BPkhWUaA= X-Google-Smtp-Source: AK7set+9yQeNh9a4SCCRqsIDweSN++5TM1ESw8k+BdeiofL8SgPf4Ywp1U3/F3JJiOU1sPzfhcUozw== X-Received: by 2002:a05:6e02:154a:b0:318:ae1e:ccd5 with SMTP id j10-20020a056e02154a00b00318ae1eccd5mr22179913ilu.28.1678481350965; Fri, 10 Mar 2023 12:49:10 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id a7-20020a056e020e0700b00315785bfabfsm273817ilk.47.2023.03.10.12.49.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 12:49:10 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass Subject: [PATCH v2 01/12] efi: Set RUN_64BIT correctly for the EFI app Date: Fri, 10 Mar 2023 12:48:51 -0800 Message-Id: <20230310204903.416969-2-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230310204903.416969-1-sjg@chromium.org> References: <20230310204903.416969-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The U-Boot EFI app can run as a 64-bit program, so set the Kconfig correctly in that case. Make sure it doesn't build SPL, since there is no need to switch from 32 to 64 bit when running. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/Kconfig | 4 ++-- configs/efi-x86_app64_defconfig | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 07be5cd05ec..99e59d94c60 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -32,8 +32,8 @@ config X86_RUN_32BIT config X86_RUN_64BIT bool "64-bit" select X86_64 - select SPL - select SPL_SEPARATE_BSS + select SPL if !EFI_APP + select SPL_SEPARATE_BSS if !EFI_APP help Build U-Boot as a 64-bit binary with a 32-bit SPL. This is experimental and many features are missing. U-Boot SPL starts up, diff --git a/configs/efi-x86_app64_defconfig b/configs/efi-x86_app64_defconfig index dae48840493..f1cf43c1ef6 100644 --- a/configs/efi-x86_app64_defconfig +++ b/configs/efi-x86_app64_defconfig @@ -4,6 +4,7 @@ CONFIG_ENV_SIZE=0x1000 CONFIG_DEFAULT_DEVICE_TREE="efi-x86_app" CONFIG_DEBUG_UART_BASE=0 CONFIG_DEBUG_UART_CLOCK=0 +CONFIG_X86_RUN_64BIT=y CONFIG_VENDOR_EFI=y CONFIG_TARGET_EFI_APP64=y CONFIG_DEBUG_UART=y -- 2.40.0.rc1.284.g88254d51c5-goog