From: "Ard Biesheuvel" <ardb@kernel.org>
To: "Dmitry Antipov" <dmantipov@yandex.ru>,
"Ard Biesheuvel" <ardb+git@google.com>,
linux-efi@vger.kernel.org
Cc: loongarch@lists.linux.dev, "Huacai Chen" <chenhuacai@kernel.org>,
"WANG Xuerui" <kernel@xen0n.name>
Subject: Re: [PATCH 3/3] efi/libstub: Provide library helpers only where needed
Date: Thu, 26 Nov 2026 17:29:26 +0100 [thread overview]
Message-ID: <68eaf97f-4ea7-4d3b-adef-e9b51f31715e@app.fastmail.com> (raw)
In-Reply-To: <f2591cc9-563d-46c0-a83b-de763ed74e07@yandex.ru>
On Thu, 26 Nov 2026, at 17:22, Dmitry Antipov wrote:
> On 11/26/26 6:50 PM, Ard Biesheuvel wrote:
>
>> - the clz/ctz helper is needed on all RISC-V
>
> IIUC Zbb-capable cores has native clz/ctz, isn't it?
>
Yes but the UEFI spec does not mandate that extension.
The kernel proper uses alternatives patching for Zbb, and so
the native clz/ctz will be used at runtime, but we cannot rely
on it at boot.
In any case, this just builds the object in the libstub static
library, and so if the compiler never emits the library calls,
the code will not be linked in.
prev parent reply other threads:[~2026-11-26 16:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:50 [PATCH 0/3] efi/libstub: Fix library dependencies Ard Biesheuvel
2026-11-26 15:50 ` [PATCH 1/3] efi/libstub: loongarch: Provide 64-bit integer shift helpers for 32-bit Ard Biesheuvel
2026-11-26 15:50 ` [PATCH 2/3] efi/zboot: Eliminate unused code from the zboot executable Ard Biesheuvel
2026-11-26 15:50 ` [PATCH 3/3] efi/libstub: Provide library helpers only where needed Ard Biesheuvel
2026-11-26 16:22 ` Dmitry Antipov
2026-11-26 16:29 ` Ard Biesheuvel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68eaf97f-4ea7-4d3b-adef-e9b51f31715e@app.fastmail.com \
--to=ardb@kernel.org \
--cc=ardb+git@google.com \
--cc=chenhuacai@kernel.org \
--cc=dmantipov@yandex.ru \
--cc=kernel@xen0n.name \
--cc=linux-efi@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox