[PATCH v2] arm: rust: Enable Rust support for ARMv7
Alice Ryhl
aliceryhl at google.com
Thu Jul 4 02:26:12 PDT 2024
On Mon, Jun 17, 2024 at 6:04 PM Christian Schrefl
<chrisi.schrefl at gmail.com> wrote:
>
> This commit allows building ARMv7 kernels with Rust support.
>
> The rust core library expects some __eabi_... functions
> that are not implemented in the kernel.
> Those functions are some float operations and __aeabi_uldivmod.
> For now those are implemented with define_panicking_intrinsics!.
>
> This is based on the code by Sven Van Asbroeck from the original
> rust branch and inspired by the AArch64 version by Jamie Cunliffe.
>
> I have tested the rust samples and a custom simple MMIO module
> on hardware (De1SoC FPGA + Arm A9 CPU).
>
> This only includes support for ARMv7, but supporting other
> sub-architectures in the future should be as simple as setting
> the correct rustc target.
>
> Signed-off-by: Christian Schrefl <chrisi.schrefl at gmail.com>
With the clarification from Ard, I give:
Reviewed-by: Alice Ryhl <aliceryhl at google.com>
More information about the linux-arm-kernel
mailing list