aboutsummaryrefslogtreecommitdiff
path: root/riscv.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscv.c')
-rw-r--r--riscv.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/riscv.c b/riscv.c
index aaa39325..7b9ae889 100644
--- a/riscv.c
+++ b/riscv.c
@@ -50,4 +50,21 @@ SYS_FUNC(riscv_flush_icache)
return RVAL_DECODED;
}
+SYS_FUNC(riscv_hwprobe)
+{
+ /* uintptr_t probes */
+ printaddr(tcp->u_arg[0]);
+
+ /* size_t probe_count, size_t cpu_count */
+ tprintf(", %lu, %lu, ", tcp->u_arg[1], tcp->u_arg[2]);
+
+ /* uintptr_t pcus */
+ printaddr(tcp->u_arg[3]);
+
+ /* unsigned flags */
+ tprintf(", %#lx", tcp->u_arg[4]);
+
+ return RVAL_DECODED;
+}
+
#endif /* RISCV */