094981352c
Note that only x86_64 is covered and not all features nor mitigations are handled, but it is enough as a starting point and showcases the basics needed to add Rust support for a new architecture. Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Co-developed-by: Alex Gaynor <alex.gaynor@gmail.com> Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com> Co-developed-by: Wedson Almeida Filho <wedsonaf@google.com> Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com> Co-developed-by: David Gow <davidgow@google.com> Signed-off-by: David Gow <davidgow@google.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
20 lines
846 B
ReStructuredText
20 lines
846 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
Arch Support
|
|
============
|
|
|
|
Currently, the Rust compiler (``rustc``) uses LLVM for code generation,
|
|
which limits the supported architectures that can be targeted. In addition,
|
|
support for building the kernel with LLVM/Clang varies (please see
|
|
Documentation/kbuild/llvm.rst). This support is needed for ``bindgen``
|
|
which uses ``libclang``.
|
|
|
|
Below is a general summary of architectures that currently work. Level of
|
|
support corresponds to ``S`` values in the ``MAINTAINERS`` file.
|
|
|
|
============ ================ ==============================================
|
|
Architecture Level of support Constraints
|
|
============ ================ ==============================================
|
|
``x86`` Maintained ``x86_64`` only.
|
|
============ ================ ==============================================
|