summaryrefslogtreecommitdiff
path: root/src/arch-riscv64.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-01-07 14:51:19 +0100
committerPaul Moore <paul@paul-moore.com>2020-02-23 10:27:58 -0500
commit5432e15521d5ce5a7d3f26bf78674cbaa9d73d1f (patch)
treef0bf4ab2fcb55620c15aae9f4c6169bea6d73285 /src/arch-riscv64.h
parent0a4c0300ebcc982cf419a4f7382ffc28e4792d2a (diff)
downloadlibseccomp-5432e15521d5ce5a7d3f26bf78674cbaa9d73d1f.tar.gz
arch: Add RISC-V 64-bit support
Signed-off-by: Andreas Schwab <schwab@suse.de> [PM: minor macro shuffling in seccomp.h.in] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/arch-riscv64.h')
-rw-r--r--src/arch-riscv64.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/arch-riscv64.h b/src/arch-riscv64.h
new file mode 100644
index 0000000..16fca6b
--- /dev/null
+++ b/src/arch-riscv64.h
@@ -0,0 +1,30 @@
+/*
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of version 2.1 of the GNU Lesser General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, see <http://www.gnu.org/licenses>.
+ */
+
+#ifndef _ARCH_RISCV64_H
+#define _ARCH_RISCV64_H
+
+#include <inttypes.h>
+
+#include "arch.h"
+#include "system.h"
+
+extern const struct arch_def arch_def_riscv64;
+
+int riscv64_syscall_resolve_name(const char *name);
+const char *riscv64_syscall_resolve_num(int num);
+
+const struct arch_syscall_def *riscv64_syscall_iterate(unsigned int spot);
+
+#endif