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 F37D4C64EC7 for ; Sun, 26 Feb 2023 01:33:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E5A085931; Sun, 26 Feb 2023 02:33:32 +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="iQQlC68a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4426185925; Sun, 26 Feb 2023 02:33:18 +0100 (CET) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 112D885930 for ; Sun, 26 Feb 2023 02:33:15 +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-x12f.google.com with SMTP id a1so2080886iln.9 for ; Sat, 25 Feb 2023 17:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=6t/k2HKT7Dx/g/C+g9qBuL9HjDcllQ1zxfcUuyNiKdc=; b=iQQlC68aWThFDvLWS4APEQvUqvDbKyOlCl75dQZ9j4vCbTkDBng7KETlTFIKJUAE1R jgBCzKd8R7PGDTmj85qrXMrN7hxnjxahK7HH7sOT3MNI01yYgg5rGOtiASdXBIQhEDsy /7m5bIrFUnmP44VsxVQ4BO4j6rSKGTJbQqaPM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=6t/k2HKT7Dx/g/C+g9qBuL9HjDcllQ1zxfcUuyNiKdc=; b=nVZ7H38FGckRbAS5xZ+0+eWHN80/1bfVJo+bHakimUQltNgIle8a7LMMxJuo0vH3PJ cd4lAxj2jSxb3hgOZAjZCwX/GMzQqMzUDmTtw+Ey31swtyudfi5rp4HRqKQVo/datNWo seBWahkOGYWL3xWVH4Pn/OxwFmDSpsURPYW9FsAVyvJpCb3pK2f+PQcB3PSaP0zRRDyW Phc+tOLPaFVZCLXEj3B6RBPwyyOSqMa7I6iw0shVwUN5JgGM4t1gASs6o24BxmYtyZ7R aR8ush9lkWX7TevMy/P187ErAKCy7uqwMqHZExnEJX5ClpfYtFHHjhyl80zHnOkQ8XKy nsrw== X-Gm-Message-State: AO0yUKVc3bT6x9x/Ty3ayZI5U+7jmCovJbNjEgW0E5FdLvH6EpdrqEUN M5FRwk1wBNHdYvxXaTQ2tZrYTQoykOIsJwXW X-Google-Smtp-Source: AK7set9XM9M2EaZgTLq9us2MtF/lbRVzLTc7lyaiXdp5ZpTcLEG9a1nHVpTZDOmkcsQZ8WaDXgZF0Q== X-Received: by 2002:a05:6e02:1806:b0:315:3eac:6293 with SMTP id a6-20020a056e02180600b003153eac6293mr4135219ilv.4.1677375193636; Sat, 25 Feb 2023 17:33:13 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id r5-20020a92ce85000000b00316e3a38becsm932699ilo.18.2023.02.25.17.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 17:33:13 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass , Bin Meng Subject: [PATCH 01/10] efi: Set RUN_64BIT correctly for the EFI app Date: Sat, 25 Feb 2023 18:32:56 -0700 Message-Id: <20230226013305.2251638-2-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230226013305.2251638-1-sjg@chromium.org> References: <20230226013305.2251638-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.6 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 --- 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.39.2.637.g21b0678d19-goog