summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2017-02-20 21:12:15 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2017-02-20 21:12:15 +0000
commitae626750a0dd09112aa5ed4462260f258e66fa76 (patch)
tree80333372b78fa965ea2257cd244aad55121a58c4 /sys/arch
parentc362e21145ba0d5245391bf4d4a282edceb67ca7 (diff)
STACKALIGN() already does the right thing by casting the given argument
to unsigned long, so explicitly casting the address to unsigned int only leads to truncation.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/arm64/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/vm_machdep.c b/sys/arch/arm64/arm64/vm_machdep.c
index 3a879b9dc26..d328a4ddbbc 100644
--- a/sys/arch/arm64/arm64/vm_machdep.c
+++ b/sys/arch/arm64/arm64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.2 2017/02/12 04:55:08 guenther Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.3 2017/02/20 21:12:14 patrick Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 2003/04/26 18:39:33 fvdl Exp $ */
/*-
@@ -90,7 +90,7 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, void *tcb,
*tf = *p1->p_addr->u_pcb.pcb_tf;
if (stack != NULL)
- tf->tf_sp = STACKALIGN((u_int)(stack));
+ tf->tf_sp = STACKALIGN(stack);
if (tcb != NULL)
pcb->pcb_tcb = tcb;