Message ID | 20210925003055.759305-20-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: 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=fFxHUiPM; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 ozlabs.org (Postfix) with ESMTPS id 4HGVQY5K27z9t4b for <incoming@patchwork.ozlabs.org>; Sat, 25 Sep 2021 10:39:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 920B583548; Sat, 25 Sep 2021 02:39:06 +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="fFxHUiPM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EAC0834B5; Sat, 25 Sep 2021 02:32:44 +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=-3.6 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-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) (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 CA8968351C for <u-boot@lists.denx.de>; Sat, 25 Sep 2021 02:31:36 +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-oi1-x22f.google.com with SMTP id x124so16821103oix.9 for <u-boot@lists.denx.de>; Fri, 24 Sep 2021 17:31:36 -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=xXe01bEUoP8Wj60/dnGCq448aRNIdR/ZNDf4d/GXKmg=; b=fFxHUiPM5w0jls1JzV1VFn0lkVAu1easFaNxa9dKjkApGs/6kAs5MhGrPkKXBvrcB5 0Z79GkFdWPyuIeysiBe13n+Tyu+mkVB0pF1ilPMRq+MBDOlGsg/WSglg1BchASKll4ZF nWKF3SGOQf70rg/9t62K/XSywK5PUcKnLGxQM= 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=xXe01bEUoP8Wj60/dnGCq448aRNIdR/ZNDf4d/GXKmg=; b=uvDJR1VStvthXSF8CZPRY2ERAVwn+5GqsfTxj5gAtcQ2Kkb6nHPmgj9yzcFG+h9qST XPn0Zy1CD5W3l1mpsHQzCZK+bZFHtaphSJODXy7vSXypkl8eKAjPykoIdEvGdWFSB2HG 7IlAP43XegwlwLspejJ2EoucEU8Oe7slGp++Hb7y/w8zy/qqO5yTOLnrEAmX6lvAvdlr +ERhzHLxtrEYBQWzX6Lb5y0YGdIObiX6gqL6qkADJygfb9ebzHka31sJYdLqqY43/Evp Zgi1dvrARrsKU9Q31jK9DAzTVOHEFiCpUZWv+beaK14IuP/owR8fJSWLizxWMDlbElXw vROQ== X-Gm-Message-State: AOAM531sU2CZOa4szNuF/lDg1kVlUOBz6w7BOtUVerwVgX/dleH4vOsY bQaQ4S8lwCaACbIitGLrWRlUdYwrkF1ivQ== X-Google-Smtp-Source: ABdhPJwH8ozdw+kKAP84AiMlD+VjDADjRZnpbh4FspaZtfdhwiDTlmuiqBJWEN4nbcv1dipa65h0jQ== X-Received: by 2002:aca:b80b:: with SMTP id i11mr3673588oif.26.1632529894627; Fri, 24 Sep 2021 17:31:34 -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 y83sm2491462oia.47.2021.09.24.17.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 17:31:34 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Bin Meng <bmeng.cn@gmail.com>, Christian Melki <christian.melki@t2data.com>, Tom Rini <trini@konsulko.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de> Subject: [PATCH v2 35/39] efi: Mention that efi_info_get() is only used in the stub Date: Fri, 24 Sep 2021 18:30:51 -0600 Message-Id: <20210925003055.759305-20-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210925003055.759305-1-sjg@chromium.org> References: <20210925003055.759305-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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi: Improvements to U-Boot running on top of UEFI
|
expand
|
diff --git a/include/efi.h b/include/efi.h index e04ef942161..8198394e7e0 100644 --- a/include/efi.h +++ b/include/efi.h @@ -580,6 +580,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
This provides access to EFI tables after U-Boot has 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 <sjg@chromium.org> --- Changes in v2: - Fix 'as' typo include/efi.h | 4 ++++ 1 file changed, 4 insertions(+)