projects
/
util-linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4643a84
)
setarch: add riscv64/riscv32 support
author
Michal Biesek
<michalbiesek@gmail.com>
Mon, 14 Aug 2023 00:37:45 +0000
(
02:37
+0200)
committer
Chris Hofstaedtler
<zeha@debian.org>
Mon, 30 Oct 2023 22:02:25 +0000
(23:02 +0100)
Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name setarch-add-riscv64-riscv32-support.patch
sys-utils/setarch.c
patch
|
blob
|
history
diff --git
a/sys-utils/setarch.c
b/sys-utils/setarch.c
index 1a255e443d711e80f278441b28624a0ec39d4673..0a6af83b6ad1aa916c235d6996b695d7ae4de3cf 100644
(file)
--- a/
sys-utils/setarch.c
+++ b/
sys-utils/setarch.c
@@
-270,6
+270,12
@@
static struct arch_domain *init_arch_domains(void)
{PER_LINUX32, "arm", "arm"},
{PER_LINUX, "arm64", "aarch64"},
{PER_LINUX, "aarch64", "aarch64"},
+#endif
+#if defined(__riscv)
+ {PER_LINUX32, "riscv32", "riscv32"},
+ {PER_LINUX32, "rv32", "riscv32"},
+ {PER_LINUX, "riscv64", "riscv64"},
+ {PER_LINUX, "rv64", "riscv64"},
#endif
/* place holder, will be filled up at runtime */
{-1, NULL, NULL},