aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-12-26 01:39:39 +0000
committerMark Johnston <markj@FreeBSD.org>2023-12-26 02:04:00 +0000
commit7b68fb5ab2a276ccd081cc1a43cebf0fb315e952 (patch)
tree21d2a61a632f9ab0cd8ccdab48118389a658f0cb /sys/riscv
parent4f35450ce52a7b141e7ae8d37fa257b5f8971dda (diff)
Diffstat (limited to 'sys/riscv')
-rw-r--r--sys/riscv/riscv/vm_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/riscv/riscv/vm_machdep.c b/sys/riscv/riscv/vm_machdep.c
index b4a7f1c489af..f6d6f61bdc84 100644
--- a/sys/riscv/riscv/vm_machdep.c
+++ b/sys/riscv/riscv/vm_machdep.c
@@ -178,7 +178,7 @@ cpu_copy_thread(struct thread *td, struct thread *td0)
* Set that machine state for performing an upcall that starts
* the entry function with the given argument.
*/
-void
+int
cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg,
stack_t *stack)
{
@@ -189,6 +189,7 @@ cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg,
tf->tf_sp = STACKALIGN((uintptr_t)stack->ss_sp + stack->ss_size);
tf->tf_sepc = (register_t)entry;
tf->tf_a[0] = (register_t)arg;
+ return (0);
}
int