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 02854C6FD1F for ; Sun, 19 Mar 2023 19:32:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6418B85C86; Sun, 19 Mar 2023 20:31:22 +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="UZj/lFOS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 08A2F85C66; Sun, 19 Mar 2023 20:30:57 +0100 (CET) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (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 ECE1A858FF for ; Sun, 19 Mar 2023 20:30:45 +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-pj1-x1036.google.com with SMTP id x11so8268264pja.5 for ; Sun, 19 Mar 2023 12:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1679254244; 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=yU1pGC908r/stMmPwThHo6LWUUUiNmeG+EOgNcfJrtY=; b=UZj/lFOSNvwwRDLkQs16Gs1Jv0gi8NBGedydC7PPaG67jZCmQuPNqtzPUq7i7cGCbU gUWCbebTdMzRWLVgqhcBKY0G7TKHISkwoU3z9t81RDv8fEKv2VAaymJfwAtFOLdqvsDB 7cjjRVkM6VU3r5bWGidtpQzftCKmtiLBLFpx4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679254244; 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=yU1pGC908r/stMmPwThHo6LWUUUiNmeG+EOgNcfJrtY=; b=Mqq6f+o4DcjO14cEvh+ynKRi36y7m2E/dj17SBP5CfTvLaUBxNlVRZ6CL9pEn7TXNV NF8zfgVePABHUk2z8qpjIgk0HXGDnqGie5Jtpu40KMFmd1wyrpCpDnHZg4Zd+Xf+qoSK aRJypBQUV2c94E6BDLPBWB/5F+vtzCxnLZCf5ST6jtfJQteHTc5y8CixTvtlp//nD1Hm KjypQ0Qb7Z5EmfKb9KdaUKPxjAtA5qm4rD6vle38Cp+kqKcn3Ajl73YmFka6+BwOn6Vh soe7Qqb16I6WJ7lJ3PI2puUZIcOUGHbrKaRflXjibRxKOWc3VAmTdvKgiQb4FgKV2U6e mn9Q== X-Gm-Message-State: AO0yUKVgwK2inKl89U66mUuj97u4o3phmd2ZN7a579DeD6UjmcVta1U4 lUBGtImwwA2e9X1D1x4vHAKqAyqKqNGEH4NtUzI= X-Google-Smtp-Source: AK7set/g84xaSKzIXYODRUHrE/gQz485CiVFOOF5srh3pI447YLrYlQDDg/Lw+qbxRMaMveGn/6chQ== X-Received: by 2002:a17:903:138c:b0:1a1:918e:4129 with SMTP id jx12-20020a170903138c00b001a1918e4129mr13090839plb.30.1679254244026; Sun, 19 Mar 2023 12:30:44 -0700 (PDT) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id v12-20020a1709029a0c00b0019a75ea08e5sm5090651plp.33.2023.03.19.12.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 12:30:43 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass Subject: [PATCH v3 01/12] efi: Set RUN_64BIT correctly for the EFI app Date: Mon, 20 Mar 2023 08:30:05 +1300 Message-Id: <20230319193017.1084764-2-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230319193017.1084764-1-sjg@chromium.org> References: <20230319193017.1084764-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 07be5cd05ec0..99e59d94c606 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 dae488404935..f1cf43c1ef66 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