Skip to content

Commit 0438aad

Browse files
sulixrichardweinberger
authored andcommitted
rust: arch/um: Add support for CONFIG_RUST under x86_64 UML
CONFIG_RUST currently supports x86_64, but does not support it under UML. With the previous patches applied, adding support is trivial: add CONFIG_HAVE_RUST to UML if X86_64 is set. The scripts/generate_rust_target.rs file already checks for CONFIG_X86_64, not CONFIG_X86, so is prepared for UML support. The Rust support does not currently support X86_32. Also, update the Rust architecture support documentation to not that this is being maintained: I intend to look after this as best I can. Signed-off-by: David Gow <[email protected]> Reviewed-by: Sergio González Collado <[email protected]> Tested-by: Sergio González Collado <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 8849818 commit 0438aad

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: Documentation/rust/arch-support.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ Architecture Level of support Constraints
1717
============ ================ ==============================================
1818
``x86`` Maintained ``x86_64`` only.
1919
============ ================ ==============================================
20+
``um`` Maintained ``x86_64`` only.
21+
============ ================ ==============================================

Diff for: arch/um/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ config UML
2828
select TRACE_IRQFLAGS_SUPPORT
2929
select TTY # Needed for line.c
3030
select HAVE_ARCH_VMAP_STACK
31+
select HAVE_RUST if X86_64
3132

3233
config MMU
3334
bool

0 commit comments

Comments
 (0)