[PATCH V4 2/3] rust: Add PowerPC support
Christophe Leroy (CS GROUP)
chleroy at kernel.org
Mon Feb 9 23:29:22 AEDT 2026
Le 09/02/2026 à 13:02, Miguel Ojeda a écrit :
> On Mon, Feb 9, 2026 at 11:55 AM Mukesh Kumar Chaurasiya (IBM)
> <mkchauras at gmail.com> wrote:
>>
>> These changes aren’t the only ones required to get the kernel to compile
>> and link on PowerPC
>
> Is this patch not complete, then? It is up to the PowerPC maintainers
> what they want to merge, of course, but I don't think we should add
> the line in `Documentation/` if it does not work yet.
As far as I understand the patch is complete, the problem is outside the
kernel, it is in the libcore provided by rust or the rust compiler.
That libcore seems to call __udivdi3() and __umoddi3() which are not
provided by the kernel. Instead if should call the functions do_div()
and friends provided by include/asm-generic/div64.h, or provide
__udivdi3() and __umoddi3() on its own.
Christophe
More information about the Linuxppc-dev
mailing list