Re: [PATCH v2 3/3] rust: Enable for MIPS

2024-09-09 Thread Gary Guo
On Thu, 05 Sep 2024 14:33:07 +0100 Jiaxun Yang wrote: > Enable rust for linux by implement generate_rust_target.rs > and select relevant Kconfig options. > > We don't use builtin target as there is no sutiable baremetal > target for us that can cover all ISA variants supported by kernel. > > Li

Re: [PATCH v2 1/3] rust: Introduce HAVE_GENERATE_RUST_TARGET config option

2024-09-09 Thread Gary Guo
On Thu, 05 Sep 2024 14:33:05 +0100 Jiaxun Yang wrote: > scripts/generate_rust_target.rs is used by several architectures > to generate target.json target spec file. > > However the enablement of this feature was controlled by target > specific Makefile pieces spreading everywhere. > > Introduce

Re: [RFC PATCH] rust: block: Use 32-bit atomics

2024-09-08 Thread Gary Guo
On Thu, 5 Sep 2024 14:12:14 +0800 David Gow wrote: > Not all architectures have core::sync::atomic::AtomicU64 available. In > particular, 32-bit x86 doesn't support it. AtomicU32 is available > everywhere, so use that instead. Switching to 32-bit directly makes it vulnerable to counter overflow