mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 08:13:56 -04:00
Update to commit 81889e8523e6 ("RISC-V: enable building
64-bit kernels with rust support")
commit 01848eee20 ("docs: rust: fix improper rendering in
Arch Supportpage")
commit 724a75ac95 ("arm64: rust: Enable Rust support
for AArch64")
commit 90868ff9ca ("LoongArch: Enable initial Rust support")
commit e5e86572e3 ("rust: sort uml documentation arch support table")
commit 04df97e150 ("Documentation: rust: Fix arch support table")
commit 0438aadfa6 ("rust: arch/um: Add support for CONFIG_RUST
under x86_64 UML")
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/e61eee747275c4e258416e079315b8e23fe3fde5.1714113680.git.siyanteng@loongson.cn
28 lines
1.1 KiB
ReStructuredText
28 lines
1.1 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
||
.. include:: ../disclaimer-zh_CN.rst
|
||
|
||
:Original: Documentation/rust/arch-support.rst
|
||
|
||
:翻译:
|
||
|
||
司延腾 Yanteng Si <siyanteng@loongson.cn>
|
||
|
||
架构支持
|
||
========
|
||
|
||
目前,Rust编译器(``rustc``)使用LLVM进行代码生成,这限制了可以支持的目标架构。此外,对
|
||
使用LLVM/Clang构建内核的支持也有所不同(请参见 Documentation/kbuild/llvm.rst )。这
|
||
种支持对于使用 ``libclang`` 的 ``bindgen`` 来说是必需的。
|
||
|
||
下面是目前可以工作的架构的一般总结。支持程度与 ``MAINTAINERS`` 文件中的``S`` 值相对应:
|
||
|
||
============= ================ ==============================================
|
||
架构 支持水平 限制因素
|
||
============= ================ ==============================================
|
||
``arm64`` Maintained 只有小端序
|
||
``loongarch`` Maintained \-
|
||
``riscv`` Maintained 只有 ``riscv64``
|
||
``um`` Maintained 只有 ``x86_64``
|
||
``x86`` Maintained 只有 ``x86_64``
|
||
============= ================ ==============================================
|