Re: [PATCH V4 2/3] rust: Add PowerPC support
From: Mukesh Kumar Chaurasiya
Date: Tue Feb 10 2026 - 00:28:58 EST
On Mon, Feb 09, 2026 at 01:48:01PM +0100, Miguel Ojeda wrote:
> On Mon, Feb 9, 2026 at 1:29 PM Christophe Leroy (CS GROUP)
> <chleroy@xxxxxxxxxx> wrote:
> >
> > 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.
>
> Yeah, but what I mean is, should we add this if it doesn't link,
> especially without a note or comment of some kind? (Perhaps to your
> tracking issue in GitHub?)
>
Hey,
I'll put this as a note in out rust support issue on github.
> i.e. if I understand correctly, you prefer to not add the panicking
> intrinsics to `rust/compiler_builtins.rs`, which I agree isn't ideal.
> By the way, it would be nice if IBM could join one of the meetings
> with have with upstream Rust to raise this topic again with them.
>
Sure, i'll try to join the call and bring this up.
> In any case, it is up to you, of course. My only concern on the Rust
> bits is on the docs side, the rest looks fine.
>
> Thanks!
>
> Cheers,
> Miguel
Regards,
Mukesh