From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF69CC433F5 for ; Wed, 8 Sep 2021 13:40:29 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6C47261164 for ; Wed, 8 Sep 2021 13:40:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6C47261164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA7E7834BC; Wed, 8 Sep 2021 15:36:46 +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="HQ2xwElI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84D10833D7; Wed, 8 Sep 2021 15:35:24 +0200 (CEST) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 3B0CE8345C for ; Wed, 8 Sep 2021 15:34:58 +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-wr1-x435.google.com with SMTP id b6so3315623wrh.10 for ; Wed, 08 Sep 2021 06:34:58 -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=N53ZmEDD/W9WfRsd+AzSDbVoAXx2Rw1QbGMhnm0xUGQ=; b=HQ2xwElI/pmTexcPItuMEq/llIXnESuP6cXONtEf50IUHHikcg1gAvhwp4lMT8A6B2 0hNIYirw1WsQnYDV5cHEf8AM0qb3QLsDwoYjDfFX56Om0j7bZIK5n2TARETslTRP6Nki +KlM46gB7Rs66c6ZifX3sXIq97PfL71uZei3c= 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=N53ZmEDD/W9WfRsd+AzSDbVoAXx2Rw1QbGMhnm0xUGQ=; b=rYIuBJuUKofMMGQfKMmg9zy21UCaudq9PbuDncggW71jrXEBPEwNSP55GGxXU+4vH8 Gfrz1Qu+/UQ07ZJtfWW4XJgBVlS1Q4SkxSM2/uH0UDKtuZa/rXEpv3iwoFZ22fuG9pGB dckt6vskqjyk/zuJKbx3tT3N+/HUcOX+9773oPh98CuDK4sX5soVl0JtkpsR+rbKth0l qh9EHG31R1MS0gTSJCz0CTe9p3+Fgr4miYdQGZotHWs+y5Nn2kd/EpeEH8byYP7Q2S8u JWRGaR/gQ4ZjQQlckgz5f0ByB1n3TtROF2oPL8plLyp9oF7tDlcdIQw82T3JwT9YsH5g Jt9w== X-Gm-Message-State: AOAM533OKTJdSuuK0ejthmN+hdHhZVnPwwUk3tCZF1A+Qhxdam7ukMYM 2RarSlPs+ZNdUaIwTKORwdKWhBuhV7AslUWg X-Google-Smtp-Source: ABdhPJw9w2yTh67/0oUXMddzfexcldgOfW/NkaCD10AsXhcZa9cI3Gh19VweE8L3TXxGvr8qcXCA7A== X-Received: by 2002:adf:de8f:: with SMTP id w15mr4259866wrl.277.1631108097494; Wed, 08 Sep 2021 06:34:57 -0700 (PDT) Received: from sjg1.roam.corp.google.com (82-69-54-180.dsl.in-addr.zen.co.uk. [82.69.54.180]) by smtp.gmail.com with ESMTPSA id l2sm2209065wmi.1.2021.09.08.06.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 06:34:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Heinrich Schuchardt , Bin Meng , Tom Rini , Christian Melki , Simon Glass , Alexander Graf Subject: [PATCH 33/35] efi: Mention that efi_info_get() is only used in the stub Date: Wed, 8 Sep 2021 07:34:03 -0600 Message-Id: <20210908133405.696481-18-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.153.gba50c8fa24-goog In-Reply-To: <20210908133405.696481-1-sjg@chromium.org> References: <20210908133405.696481-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 provides access to EFI tables after U-Boot as exited boot services. It is not needed in the app since boot services remain alive and we can just call them whenever needed. Add a comment to explain this. Signed-off-by: Simon Glass --- include/efi.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/efi.h b/include/efi.h index abc3fb2f94a..f624243d596 100644 --- a/include/efi.h +++ b/include/efi.h @@ -578,6 +578,10 @@ void efi_putc(struct efi_priv *priv, const char ch); /** * efi_info_get() - get an entry from an EFI table * + * This is called from U-Boot proper to read information set up by the EFI stub. + * It can only be used when running from the EFI stuff, not when U-Boot is + * running as an app. + * * @type: Entry type to search for * @datap: Returns pointer to entry data * @sizep: Returns pointer to entry size -- 2.33.0.153.gba50c8fa24-goog