From patchwork Tue Oct 26 03:30:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1546213 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=cV28K3zg; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hdctb6FCgz9sRN for ; Tue, 26 Oct 2021 14:36:23 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DAFC68364C; Tue, 26 Oct 2021 05:33:57 +0200 (CEST) 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="cV28K3zg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F0988358D; Tue, 26 Oct 2021 05:31:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 3D5C38358E for ; Tue, 26 Oct 2021 05:31:30 +0200 (CEST) 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-io1-xd29.google.com with SMTP id n10so8885701iod.13 for ; Mon, 25 Oct 2021 20:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8TFPlpgZ0SR72BY/OseGR0i5eWO8p/+ppOfHpUWembo=; b=cV28K3zgWjrvLvRgWmvIuwbbFoVDezeURj9BmNp+DwXlwcii7LzluSxqjYEKj6w8py BusDVgEY6qzzHjH8VRVlIeG7M/jbLwkbvuNnyjRY5mlRT8U8GnGqVfpnFTICw2kjvt1S bEJBykPLRnJmwX+1l9UrYhXjJVJsuRqYGUrqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8TFPlpgZ0SR72BY/OseGR0i5eWO8p/+ppOfHpUWembo=; b=j9EvyPjeXC6/OeJA+e4YWSNL/zHUru0okKW49VuBsRtaFNnTaG9H2gLrH7R3w8uqGD tRcYK3l5iQ1yEBmSVEchWGuR57xJi05ux/CpSyAKbAuNTWTNpNf6VWGsxItIpgNepNZQ Nuymyhs8hr/1G3AwFNleb99y3UVm1gCCpk+rhqZjpSV6hYnX4tnL/MqI9U6Vi+oJXzeI McEEp4np5SUAPDLV/cgthkqU1/CiQBO7uk9V+7KU+Wbuy/79DJ5XJ3Yu4KBf3vc5E16p ol0KofNGExJFMLWMpfRquAwnHTO/ivnN1VY2eR/yh9khRdg2bn4DgqPSnEL8Z4mBKQ3v QmCg== X-Gm-Message-State: AOAM531JqDc9DVE/wCXNTo4pP28+PTHNFHuB1p6pAUvmeorHeZVDPjuR 60D78S5e/MGHABjVajybCJPVyWM6ykQmGg== X-Google-Smtp-Source: ABdhPJy6SKpL5VEZLlLtiOHCMqMcTTMSWBEXAZhNQWwjjPWlx9df6lNtc4cGicaeo1tWGaWS9fVLqA== X-Received: by 2002:a05:6638:140f:: with SMTP id k15mr644628jad.9.1635219088775; Mon, 25 Oct 2021 20:31:28 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s10sm10127203ild.78.2021.10.25.20.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 20:31:28 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf Subject: [PATCH v3 25/35] efi: Fix ll_boot_init() operation with the app Date: Mon, 25 Oct 2021 21:30:48 -0600 Message-Id: <20211026033058.430010-14-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211026033058.430010-1-sjg@chromium.org> References: <20211026033058.430010-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This should return false when the EFI app is running, since UEFI has done the required low-level init. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/init.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/init.h b/include/init.h index c781789e367..6d682b02b05 100644 --- a/include/init.h +++ b/include/init.h @@ -15,7 +15,7 @@ #include /* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */ -#ifdef CONFIG_EFI_STUB +#ifdef CONFIG_EFI #define ll_boot_init() false #else #include