News: 0001489558

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

New Patches Bring Rust Linux Kernel Support To MIPS

([Linux Kernel] 4 Hours Ago Rust + Linux Kernel + MIPS)


When it comes to the Rust programming language support within the Linux kernel one of the limitations is that the CPU architecture support isn't as widespread. Currently Rust for Linux supports x86_64, AArch64 (ARM64) little-endian, LoongArch, and RISC-V. While those cover the main targets, POWER is notably missing and many other niche CPU architectures supported by the Linux kernel especially for aging platforms. Patches posted today to the Linux kernel mailing list would extend the Rust support to MIPS.

Part of the difficulty in the Rust for Linux kernel support is being dependent upon the architectures supported by the upstream LLVM-based Rust compiler but then still needing Linux kernel code changes as well in enabling and validating the new CPU ports. The patches posted today aim to get the Rust kernel code working on MIPS hardware.

Jiaxun Yang posted the patches for Rust MIPS kernel support and commented:

"This series added MIPS arch support to rust for linux, hopefully MIPS is not too late to the party :-)

Sample rust module tested on R4000(el), mips32, mips32r2el, mips64, mips64r2el, mips64r6el."

Those interested can find the MIPS enabling patches for Rust in the Linux kernel via [1]this Linux kernel mailing list thread . So far from initial feedback it's looking like some upstream Rust changes may be needed for some new MIPS target triples before the code is ultimately accepted into the upstream Linux kernel.



[1] https://lore.kernel.org/rust-for-linux/20240903-mips-rust-v1-0-0fdf0b2fd58f@flygoat.com/



Quackdoc

fitzie

Have you noticed that all you need to grow healthy, vigorous grass is a
crack in your sidewalk?