aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/cloudabi64/cloudabi64_sysvec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm64/cloudabi64/cloudabi64_sysvec.c')
-rw-r--r--sys/arm64/cloudabi64/cloudabi64_sysvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/cloudabi64/cloudabi64_sysvec.c b/sys/arm64/cloudabi64/cloudabi64_sysvec.c
index ebcb54e1a867..79b1046ddc95 100644
--- a/sys/arm64/cloudabi64/cloudabi64_sysvec.c
+++ b/sys/arm64/cloudabi64/cloudabi64_sysvec.c
@@ -139,9 +139,9 @@ cloudabi64_thread_setregs(struct thread *td,
stack_t stack;
/* Perform standard register initialization. */
- stack.ss_sp = (void *)attr->stack;
+ stack.ss_sp = TO_PTR(attr->stack);
stack.ss_size = attr->stack_size;
- cpu_set_upcall(td, (void *)attr->entry_point, NULL, &stack);
+ cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack);
/*
* Pass in the thread ID of the new thread and the argument