rustix icon indicating copy to clipboard operation
rustix copied to clipboard

Add support for loongarch64

Open zhaixiaojuan opened this issue 2 years ago • 1 comments

The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a RISC style.

Documentations: ISA: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html ABI: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html More docs can be found at: https://loongson.github.io/LoongArch-Documentation/README-EN.html

zhaixiaojuan avatar Feb 02 '23 13:02 zhaixiaojuan

Now I see why rust-lang/rust#101069 is needed at all at such an early bring-up stage... this crate is being depended upon by Cargo. A lot have changed since I last ported Rust.

On architectures it doesn't recognize, rustix should default to using its libc backend, which doesn't use any asm and in theory should just work. If this is an early bring-up phase, it may make sense to just use that rather than pushing for rustix linux_raw support right away.

sunfishcode avatar Apr 19 '23 13:04 sunfishcode