From patchwork Tue Aug 19 18:58:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 18 Return-Path: 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=1755630062; bh=JHIYggt5FUi9xZvuydz7NqDwkJ2w7bXn4xcK3MtGMk4=; 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=r6/dx8CpzeIPM+CJYLAtilOXiwm117TkZ3Pyg+fsGMJhC5jd2BpCjYZhHGipOZS8L tn5h7PcX48gsHw/680CLuz1iynyQ+eB94hzgIVaC6wltpCbVfPlaIUTcZ/eHfbmkSj zUTPx4opiP4Tq11uv9ycjL3N7aCnz4MNStvGAv5CHOlE/Tz7CAFWfG7Ec7KM14/pvJ GABN5aiIY7TN4KYB7Ap3e6UvdbGHsiTwP3uUMNzAb+r1B5lfdtr0XbgAWIR8vqRLNB ST1gkrWLiZ//nx8sIzmVBF4mmoxMF3V5mTfrwnGu/Y7+VjEXoMicqz8rTAO6oM8ZiX E0TvlbTVX81yQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3F774675FA for ; Tue, 19 Aug 2025 13:01:02 -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 3N8xpNRxn7BM for ; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630059; bh=JHIYggt5FUi9xZvuydz7NqDwkJ2w7bXn4xcK3MtGMk4=; 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=m0hm+xEXoXOKsc1tiIhnkErx+hIyTeUXGuaDi7N5KTSjq3gYrfdWoeuwrpuAStYyL TyV/JfSQR5H0ph/7u4HRC+6NlT6ApS/zkj7bFVVqhyxj2fRE/IoWLZXpNoyk6Q8yIo ve03VhiMzhvfxm7jPxPXd22KYut7kdaGqbz6xaOcYMhnGIVsJdO7Re4xIGuuWZJBYT uoiN+o1EEpnWYViiOnQ3FMFxVOgo079peV0/tKCREx7G+PuM+4qxbqt1sKdSh2KsLL 8aXMmFdMSt6y+COMnEaih6LekTE83iHe05J5ktIy+tSeVIRGHRrQcY38BbzRh728Li T3CWrDFt2mUTQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CBE9D67614 for ; Tue, 19 Aug 2025 13:00:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630057; bh=T8THqVCysMBcmz5I5Sn2s1nZdK8wh0bLDUq7iqk68gE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lPBSlqSwuW6dVCZDZwbqjlsxIOIz+m2UD8zXKDhsWaq642teGkTn28Mz+IxZl2dzH XjzbcGf3i5RqUpu0KCCSNlnlN8GmULUK1/u1LdELIBGWp5Fxq3VJ2tltVUMuVY0O6P P8kmR/2Cge+6ndytjSH2leCNXoj9NTn03dod/+XM7HWy9ee8cHNVTtIYhw8HfirDZd mkVQxiCC+behn+vhU+hJ7QIwR8QLcxGSFYT4R2UcYQMAQxm3CqVSWnph1T8wxS1k4k +N8fmMWmLBFq2L5TMyUVN6zgjFN4NR1Z4p19eESMbtmJ0uActX61itx8YYnK2p9D9N vclEfXlYzgK0A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 491106760D; Tue, 19 Aug 2025 13:00:57 -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 RC82JBb5h90I; Tue, 19 Aug 2025 13:00:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630054; bh=dK8FEf/emh6lUgGYccEDpatucZkVmKYQT7cbAf7JUnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZxgkmnweTz9inKF9QmYnr8FDCfvejpkn9mOLahH+zu1iot2NsLDG2q/IV7M8wdI2 Vyi5yGpiVy0T4G5jX3uYmEYO935H0Lnp+hEWuHCWy6DOPforY3aZm7EQRKjd22N/YL c6MssWqAZZL4oJv3xpAVpCMmDbo8J+Q1MU5GF8plUR/FBwHuOhzOigXmzqE1anLsAm 4MQMlx7KUApKdUVaHi3nfoLu5mped+AsXBUdSyLJJDLoEldDajG91iDwaNiKghpDvD 1yYKMl/Oq5s7PQ4fskQn2vmW7EcsFDM1Ty/8WhLYjjOp+rQU7Dvoj2Z6WQ1sxedUMT US2863XTgMi6A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 13732675FC; Tue, 19 Aug 2025 13:00:54 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:48 -0600 Message-ID: <20250819185900.835939-18-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SKU7ZKOJYRZLVEDQYXS3XZ44UGMMI5ZJ X-Message-ID-Hash: SKU7ZKOJYRZLVEDQYXS3XZ44UGMMI5ZJ 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 17/22] efi: app: Use the relocated global_data List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The new global_data is set up by the app but it never uses it. Switch to the new value after board_init_f(), so that the output of the 'meminfo' command is more contiguous. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 3c78165adef..942c7ab5133 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -221,6 +221,7 @@ efi_status_t EFIAPI efi_main(efi_handle_t image, printf("starting\n"); board_init_f(GD_FLG_SKIP_RELOC); + gd = gd->new_gd; board_init_r(NULL, 0); free_memory(priv);