From 33a2dd8713286dcb55881100869d449bcbc61754 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 21 Sep 2023 20:39:52 +0300 Subject: [PATCH] syscalls: support RISC-V architectures --- src/openpower/syscalls/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index 5888a8bc..c59b47a8 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -102,11 +102,19 @@ class Dispatcher: yield from sysnums["ppc"]["common"].items() yield from sysnums["ppc"]["64"].items() + def riscv32(sysnums): + yield from sysnums["generic"]["arch32"].items() + + def riscv64(sysnums): + yield from sysnums["generic"]["arch64"].items() + arch = { "i386": i386, "amd64": amd64, "ppc": ppc, "ppc64": ppc64, + "riscv32": riscv32, + "riscv64": riscv64, } sysnums = table["sysnums"] sysargs = table["sysargs"] -- 2.30.2