From 63c1e58910cbc3c5cc4b4bdf966f68dd292980a1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:10:50 +0200 Subject: Adding debian version 2.39.3-6. Signed-off-by: Daniel Baumann --- .../setarch-add-riscv64-riscv32-support.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch (limited to 'debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch') diff --git a/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch b/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch new file mode 100644 index 0000000..c0daa0f --- /dev/null +++ b/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch @@ -0,0 +1,26 @@ +From: Michal Biesek +Date: Mon, 14 Aug 2023 02:37:45 +0200 +Subject: setarch: add riscv64/riscv32 support + +Signed-off-by: Michal Biesek +--- + sys-utils/setarch.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c +index 1a255e4..0a6af83 100644 +--- 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}, -- cgit v1.2.3