summaryrefslogtreecommitdiffstats
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm64/cloudabi64/cloudabi64_sysvec.c b/sys/arm64/cloudabi64/cloudabi64_sysvec.c
index cf3e594..79b1046 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
@@ -165,7 +165,6 @@ static struct sysentvec cloudabi64_elf_sysvec = {
.sv_pagesize = PAGE_SIZE,
.sv_minuser = VM_MIN_ADDRESS,
.sv_maxuser = VM_MAXUSER_ADDRESS,
- .sv_usrstack = USRSTACK,
.sv_stackprot = VM_PROT_READ | VM_PROT_WRITE,
.sv_copyout_strings = cloudabi64_copyout_strings,
.sv_setregs = cloudabi64_proc_setregs,
OpenPOWER on IntegriCloud