From patchwork Thu Feb 12 00:13:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1828 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=1770855283; bh=yByY1GXyFlRS5C+S45+0zZ7t3mJK841W5ELzGXDdw58=; 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=r0Wm0TKcEEaQs1QG08zVOjRZevTgp/bToNYc0V8b7qJBfVly5V2ttH4eBmHXFRtWd 2bpplNtxrrtyUBPVbYDpl1V8Zaaw/UN0rmNncETHKJQQ3F9x8uxaJ/ZtgZ022zdHjm RttNHyqDJxPG4R4R2zT1Tn2P/d6dVHLP1qgU60rCs4Z2hp9J5/gNPG38uCWkygL2hD dzBDvkKYH7Rgyr+8cX2krMpXtu+2pLMAJhDbSQLaNbqzfxYoewuZ6oQ6++jviuKs97 qRiaru1GJCgVE8r7DxhUixab58HMGRGxIT/s8ciiUzk2DpuUgGbyMXtMTQtawLxDb3 5E/fyPNasC0Xg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CBEEC69A88 for ; Wed, 11 Feb 2026 17:14:43 -0700 (MST) 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 23PxjQ8lMRg1 for ; Wed, 11 Feb 2026 17:14:43 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855281; bh=yByY1GXyFlRS5C+S45+0zZ7t3mJK841W5ELzGXDdw58=; 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=DYUDnfXjhWT5R5d3wnShCorO5Rnek1BsTjYwl8WXMKHFHSNP7VLtQAXEROB/GQIdI kWi7DNCykSvvc4/oZDdBFxTzHtDDCN2mFQC4Q/NVaUp+b8IXRrT54qIIgVpHTYoypd 1CUVXq/C5mL/kruhdu8Q7HvvJGlQjZlO9BiqNVjSCAhlIHDXToUnbSLFlsTyZp4a2N sAfJsA8FaSmPuNOuizsNgpbRRJrX16EQxrNjch9WrTF7AMt18sjUwxSdLGJL3B2ZAP J3aEyUGFPNzt1piXanwX6sTit7GtOxR1FT+b45nP+s2M9sCJ2Fs5oCByUaHngHPgbX jGP4xrD7jlsGw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C61AA69A99 for ; Wed, 11 Feb 2026 17:14:41 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855279; bh=pMNT3T/W5iT7GVZg8vUp2yxpZzFLFNsEI8ksT8qliwQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QsB5UKKxF+xfXEfZsZHZDsTsLfyKkimFhz0WdJhrIFGFViF8EjkYR68NJP5f9GTqf 6UQfgEQrJVOKxl5onAoBsdJ+4je75hzRDbJHhU0E9OV/51SFE49w7MdSy5Q6TS8SkU N/KCdQ95S2Y+ytvkEkjcQwLOzQSaGjTexnLI+L68/hdSBeyQZoVDlJWrikVmiBHly2 Z6oUzBdT+a4Clp89DDZfcUa5AEmiOVGGLOEK1XIGbMuy9PxNiyLZDvTYYyshfKhH+o XjCuyVpqt6NHTM6Fl6Wk8T5Shn1JRSgVncvJjEtnTG20CObSUukWAEMxld9dJ1H0QF cTSySyAoa5iwg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3B51C699C6; Wed, 11 Feb 2026 17:14:39 -0700 (MST) 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 y9MTll1vQneV; Wed, 11 Feb 2026 17:14:39 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855276; bh=0bvY/xKhXqNOr4M+Jg0aC72S5iwCi9ypMJFYv8rXNkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lQBxbx12WEq/TU5V957F5UKSEqLxfpabhjMPGGsNcd2p1nvg67zvlfMBg8Mc7qYcC FKmaepD5xi1EBwQD2S819x7NlvEyTDZGnZV2MwlJIyb6mJXd/Y/sr06fi7duc0AGFM lJyqyUMeiYUMpGnWULs5MCMb/ABS5e7H6SoLzhtmzwEikK+2my8ztqENGtKPQ7z5pT q3k9MhA4j1NQHnmyfymJGVhs1pMMtqPgzbmGZRfmOYBGf9HQqF2fVlljhgdo9xItHC Ii3GL1pV5kAcVP8fuq7/jZkoMiwvkcy1rDPpwugD8grLpk2j6OiMey/HS06Gj8+QAi U2ggOZ+DI3KiQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 45DFD69A99; Wed, 11 Feb 2026 17:14:36 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 11 Feb 2026 17:13:56 -0700 Message-ID: <20260212001410.1919749-6-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260212001410.1919749-1-sjg@u-boot.org> References: <20260212001410.1919749-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 5A3KN5JLPXB75P5XR2SFN3HEXIXUVOHF X-Message-ID-Hash: 5A3KN5JLPXB75P5XR2SFN3HEXIXUVOHF 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 , Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 05/15] riscv: Add the EFI table field to arch_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 EFI client code stores the EFI system table address in gd->arch.table. This field exists in the x86 and ARM arch_global_data but is missing for RISC-V, so add it. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- arch/riscv/include/asm/global_data.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h index 47b5e2cfc8f..1ef82f35fb0 100644 --- a/arch/riscv/include/asm/global_data.h +++ b/arch/riscv/include/asm/global_data.h @@ -42,6 +42,9 @@ struct arch_global_data { #endif #ifdef CONFIG_SMBIOS ulong smbios_start; /* Start address of SMBIOS table */ +#endif +#ifdef CONFIG_EFI_CLIENT + ulong table; /* holds the table address from previous EFI firmware */ #endif struct resume_data *resume; };