summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-01-03 22:50:05 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-01-03 22:50:05 +0000
commitecca82bd26c51fec51af65ddfaa1f1db0d44f01a (patch)
treef0e0ba78a2eaeaef07fb298125d39f519d124757
parent1810957e204beb05eec6363315050933b4d19384 (diff)
Fix debug code.
-rw-r--r--sys/arch/sparc64/sparc64/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/vm_machdep.c b/sys/arch/sparc64/sparc64/vm_machdep.c
index 06e433b7999..fd4080f3cc7 100644
--- a/sys/arch/sparc64/sparc64/vm_machdep.c
+++ b/sys/arch/sparc64/sparc64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.21 2007/11/06 22:20:59 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.22 2008/01/03 22:50:04 kettenis Exp $ */
/* $NetBSD: vm_machdep.c,v 1.38 2001/06/30 00:02:20 eeh Exp $ */
/*
@@ -294,7 +294,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
#ifdef NOTDEF_DEBUG
printf("cpu_fork: Copying over trapframe: otf=%p ntf=%p sp=%p opcb=%p npcb=%p\n",
- (struct trapframe *)((int)opcb + USPACE - sizeof(*tf2)), tf2, rp, opcb, npcb);
+ (struct trapframe *)((char *)opcb + USPACE - sizeof(*tf2)), tf2, rp, opcb, npcb);
printf("cpu_fork: tstate=%lx pc=%lx npc=%lx rsp=%lx\n",
(long)tf2->tf_tstate, (long)tf2->tf_pc, (long)tf2->tf_npc,
(long)(tf2->tf_out[6]));