[PATCH 1/3] arm64: rust: Enable Rust support for AArch64

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Jan 31 10:55:58 PST 2023


On Tue, Jan 31, 2023 at 5:19 PM Will Deacon <will at kernel.org> wrote:
>
> Please confirm that this is the case, but I really think we should be
> aiming for that rather than starting off my specifying this stuff manually.

Let's see what Jamie thinks and if he can give it a try.

> One thing I ran into while playing around is that 128-bit types aren't
> supported with ffi unless '-A improper-ctypes' is passed. Given that we
> use '__uint128_t' to represent the fpsimd state, I think this is probably
> something which will crop up as an issue.

Thanks for giving it a go. With what Björn has explained (I see the PR
he linked has `user_fpsimd_struct` as a test case, which is nice), I
guess it should be fine. We could also add some tests on our side to
make sure (which we probably want to do anyway for other reasons).

Added to https://github.com/Rust-for-Linux/linux/issues/355.

Cheers,
Miguel



More information about the linux-arm-kernel mailing list