Message ID | 20250820112340.147082-7-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755689056; bh=jVFFYv0IQG+d0xjZmQ05D1s92tleAwNnQCul5AUO+pA=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=eBYJ9GJCKAfljzqQFLFB1N48L990AjwTZ7FFlj4c+ygHdPgC95EwwXKqnh9fOmZpf KjeK0Ew/ijm67NpiKZr9Q7Sdt/9wePDjqPp7wRwu634/PPvMuoGeVncXyUibVC0VD2 IuOtr0f7glRl7Kxz/OMisBuWLn5o2t0YORT/KIQg9sy1O/nvODijBTbaT2SgyynT9Z 4HqMKknWNerxAi/7Nf+flalXFQMFFCDkcEDCYgUa2MwtLHRvtGH8J+nzEJu295K4n0 Uup+f9TH8LWl9QkjDrfjnff528GrVTVM1mdYn0Rn3j+kU0IomKWlz/tTwRqn0sxF+g SgbvkhrhIhfcw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 767E96767F for <u-boot-concept@u-boot.org>; Wed, 20 Aug 2025 05:24:16 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id gDbI8dlVyLiC for <u-boot-concept@u-boot.org>; Wed, 20 Aug 2025 05:24:16 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755689053; bh=jVFFYv0IQG+d0xjZmQ05D1s92tleAwNnQCul5AUO+pA=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=BmDN/ZLGVci2DAuetlCHPvBs9RUcrPnCYHWAAiID+D3O1wIOOuTujig4hZcplPro3 anFXMU2T1ZbvTaKdmwCJ+eQHXZJ+T2mfqMophzBN+GWXsqeUMKap/qy3PTuAmAA7vq U0agwNRPR1esdyZ2QAPePRkWplxjyWJKNx5v8wHioejiyYnhIr9+ZNAR6Nk3dBOQOz Ng7bauM7DUvg49R6wKBJXJzPJjF4Z9YNlRP6QnMcKzZBn1HMWF81/EeQltm/MaoFSd UF4r0NGbishbAxUcaX3WEo9KqODm+EauCm+Xj7P2uTi/SP/2Br36o5VV11D5ehQ7y4 0f3iocyBf2Efw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 682D9675EE for <u-boot-concept@u-boot.org>; Wed, 20 Aug 2025 05:24:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755689051; bh=SOYyCe+suLq/vXiUQ4hCZMwK0O3JsJT10/Vfjnddct0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cVKx1X2+kOW+j90wEgQKmVQDsubT+wG8Vxot00iDxnvVZa9lxutCkhoKNc38DEB38 DlVzpllIWPYULiAcWLZO8LHbN0+kuqJQnMz3R4lEJBuD1et7CJoKjbGrBdkbro63JT emHcCFR9iTVqbZ4a6kwTS0ZpEkbFLPnW6hczt1bcDjx6ELxt8+ZgFyIT8Til8r3gKL 80THV9IuqtZ+Ul66AkAatNuNjXLAfPCA7GsN7imW/1Ybcur3O2w6XlXo+STpFfOS/0 DOm8xDIRgQ75YWowp1uFg1oPnWDnVUyelbwaGYSLsYjSzTX1E1yQ6YxZI41vrD8IER RHVGZIvOdSsmw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4E2826768A; Wed, 20 Aug 2025 05:24:11 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id jyy6QrVcXbPx; Wed, 20 Aug 2025 05:24:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755689050; bh=bXWs6JiCMcNr52qnJ0GzMHdyU2SLIc5IyjtXPlI9cCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NkSNftzpqd4to4JSLEi7y3kgK5/mvaZZdDjbc/pJg/rkZ7DdHypfLIVM1Si9xom3/ GFoKrLw9RI9QqYv0OJb4o6HC3wE6YoeIKNn2TBKHNtNFSUpjiU9GvHG5Y632d0Kxmi BaTqYpT6Elisq6OhruFJoC0eq7EgCy1CHTu1b2eFxzaWJer2F648DZIA2rsHwCAvAV VvKIWgfBLF7EYr8dRQ3ZUPYqDUHNdzkiZbbCBuzpOpgm1yZAiEevri1LNHGsSKbD/X YwJoKJzoaN/NciwDLlRplrswEHnkMOYqrz+uxNpa+SfzHHxzUNX/w5biDiV/carSgd gqgrDjMbaCxYg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id BA6EB6767A; Wed, 20 Aug 2025 05:24:09 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 20 Aug 2025 05:23:18 -0600 Message-ID: <20250820112340.147082-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250820112340.147082-1-sjg@u-boot.org> References: <20250820112340.147082-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ZBQXIV5DNVOI7GBGVL3BPGSFEDTAI6B5 X-Message-ID-Hash: ZBQXIV5DNVOI7GBGVL3BPGSFEDTAI6B5 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 06/18] efi: app: Support efidebug show tables List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/ZBQXIV5DNVOI7GBGVL3BPGSFEDTAI6B5/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
efi: Move towards the EFI app booting EFI applications
|
|
Commit Message
Simon Glass
Aug. 20, 2025, 11:23 a.m. UTC
From: Simon Glass <sjg@chromium.org> It is useful to be able to see the available tables in the app, so enable this subcommand. Provide an implementation of efi_get_sys_table() that works for the EFI loader. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) cmd/efidebug.c | 5 +---- lib/efi_loader/efi_boottime.c | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/cmd/efidebug.c b/cmd/efidebug.c index d93fa43b779..2f1fecf494a 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -727,10 +727,7 @@ static int do_efi_show_memmap(struct cmd_tbl *cmdtp, int flag, static int do_efi_show_tables(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - if (app_not_supported("show tables")) - return CMD_RET_FAILURE; - - efi_show_tables(&systab); + efi_show_tables(efi_get_sys_table()); return CMD_RET_SUCCESS; } diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index cc711a5c52f..8ba42ec4544 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -4026,3 +4026,8 @@ efi_status_t efi_initialize_system_table(void) return ret; } + +struct efi_system_table *efi_get_sys_table(void) +{ + return &systab; +}