]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/setarch.c
setarch: add riscv64/riscv32 support
[thirdparty/util-linux.git] / sys-utils / setarch.c
index 78b51830c5e896546d8780ce4c7ce99c4e89e0ec..7fb95a4e02d899aeaa5d53d96bbdcd8d55aa044a 100644 (file)
@@ -265,6 +265,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},