| Message ID | 20250922180116.3088502-20-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=1758564157; bh=hI2Oii10CjlfdXXuvHMyiko3Z3Iy6hxVXP1o48/+wWs=; 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=fpEmFLCZHgbx7lAWiWO9KWOTclCHD35q+I8jbnEeJ8gBz3eaaiFn3AUdP5F04L7We GZro313BTXJRwdl8WOt5E6C9lOXj+LRX1olX0+gaJf8A+XH31yQWB6QQfjFITnnJ1z 60lBS1xCMeNb+DHhw0uK9kbTF+EW4AwmSeGG1Ofsl7viSK5aQnl6p1W+GhcV4+h758 rHuW+gaQKup8dcKQ7DPz55KgwQ/T9g4vndrGhMhOrcYPl1ygltu58v4m9CogipxMMt +sMxtHdsozuNL6rf0nF7gL+3gAV78Wb6K01efATMjgW9cVcBVrk1pZK7UkwAFIPFJX aU/Nsxmune1Hg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F13F467C96 for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:02:37 -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 nQfNxojpqSQC for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:02:37 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564157; bh=hI2Oii10CjlfdXXuvHMyiko3Z3Iy6hxVXP1o48/+wWs=; 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=fpEmFLCZHgbx7lAWiWO9KWOTclCHD35q+I8jbnEeJ8gBz3eaaiFn3AUdP5F04L7We GZro313BTXJRwdl8WOt5E6C9lOXj+LRX1olX0+gaJf8A+XH31yQWB6QQfjFITnnJ1z 60lBS1xCMeNb+DHhw0uK9kbTF+EW4AwmSeGG1Ofsl7viSK5aQnl6p1W+GhcV4+h758 rHuW+gaQKup8dcKQ7DPz55KgwQ/T9g4vndrGhMhOrcYPl1ygltu58v4m9CogipxMMt +sMxtHdsozuNL6rf0nF7gL+3gAV78Wb6K01efATMjgW9cVcBVrk1pZK7UkwAFIPFJX aU/Nsxmune1Hg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E0AD167C5F for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:02:37 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564155; bh=Il9EP6BgSAcZbTI1car1Y08j/7PNp+G5ofyRAOu7MhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tj2NTdL/Ugiea7YR5ktrfCC8EsZvPT2BVXdATM7GU9p4WkVqa09t4xnuCHijk/GwF ldfUnPfuXMFc9ouvZeEdas3ULnPA/ys7TNg6kPROlhCDhwIRuaK27dW04ecJD3EfXm R2X2mxygmUTc53i0VFXpjDPt85g6Fj+6DRUWp+F9aUg7XwLx37sZJFlGVZo8o7Pzt4 Q7WN+ERcRszwgQqdRTfXyDhkXcAtqte2J+aHaEQXuoEwdykja/yXkeU6qGbj1yoi68 MgZIEG8LG7LpS1ss1JSkZLf8xPvEWeonyzsglptQpx/rwJNwPVe6DmChDgb4QiGQPM ubI9uVkN85aPA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E1BAF67C52; Mon, 22 Sep 2025 12:02:35 -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 PnLYwxRku22N; Mon, 22 Sep 2025 12:02:35 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564150; bh=F9gTRW/Nu26tGPGNzdds2/J0UEFEAYDjJNvl7kyDIbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C/+krF1Ufm7RJYdU1XYBta1yDeN7pmHzKPSboQQ70Nr8Nze38j1QaXWQtiSjQkQcJ 7rFizjycrwowGqT7ea2N/kw6KWraXA/4uPO0XGQQXWJu/gg6AqMd7FZITrR3YnjVZV BcDAScsRBqJ9HCIfcGzcaFFznFCbalkAjtKF5i+SASVh4l4Ttqh6A2g5P9lFT8BBG2 VyJMKc4plbxVbbgewcRdVaF8eSjstNHx5sbsEQYXInFhLnzlAEWYLpmq7QaqOHpOF8 BmDbVBTypXp1fbWp/zDjyYBz0+0cAOVc4XZGQ2pgzOKqOs9gBef05FaAYYhxHSe+4R xYjNxKmpLTC5A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 77B255FE1A; Mon, 22 Sep 2025 12:02:30 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 22 Sep 2025 12:01:03 -0600 Message-ID: <20250922180116.3088502-20-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250922180116.3088502-1-sjg@u-boot.org> References: <20250922180116.3088502-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: FWUXASCTH36QXJTFA3YP2HT4TXR4GYYP X-Message-ID-Hash: FWUXASCTH36QXJTFA3YP2HT4TXR4GYYP 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 19/24] lmb: Provide a static inline for lmb_alloc() 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/FWUXASCTH36QXJTFA3YP2HT4TXR4GYYP/> 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 |
boot: efi: Various improvements to booting with the EFI app
|
|
Commit Message
Simon Glass
Sept. 22, 2025, 6:01 p.m. UTC
From: Simon Glass <sjg@chromium.org> When building xilinx_zynqmp_kria we cannot access lmb_alloc() since it it is not present in the image. The linker garbage-collection does not seem to handle this either. Follow the normal procedure in this case and declare a static inline. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/lmb.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/include/lmb.h b/include/lmb.h index f221f0cce8f..3b52ee33abe 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -93,7 +93,16 @@ long lmb_reserve(phys_addr_t base, phys_size_t size); */ long lmb_reserve_flags(phys_addr_t base, phys_size_t size, enum lmb_flags flags); + +#if CONFIG_IS_ENABLED(LMB) phys_addr_t lmb_alloc(phys_size_t size, ulong align); +#else +static inline phys_addr_t lmb_alloc(phys_size_t size, ulong align) +{ + return 0; +} +#endif + phys_addr_t lmb_alloc_base(phys_size_t size, ulong align, phys_addr_t max_addr); phys_addr_t lmb_alloc_addr(phys_addr_t base, phys_size_t size); phys_size_t lmb_get_free_size(phys_addr_t addr);