summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-02-26 21:30:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-02-26 21:30:19 +0000
commitc5c457259a2b339f071f0212fc463012f74de75d (patch)
treed9fc25710ffb6845fd6010381e84cdca6adae065 /sys/arch/sh
parentb2b082f4cac10af3e0d4996bac834c10adde9bb4 (diff)
Zero rval[1] in setregs.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/sh_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c
index a6903c0bd01..3bfe733676a 100644
--- a/sys/arch/sh/sh/sh_machdep.c
+++ b/sys/arch/sh/sh/sh_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh_machdep.c,v 1.7 2007/01/15 22:22:19 martin Exp $ */
+/* $OpenBSD: sh_machdep.c,v 1.8 2007/02/26 21:30:18 miod Exp $ */
/* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */
/*-
@@ -602,6 +602,8 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack,
tf->tf_spc = pack->ep_entry;
tf->tf_ssr = PSL_USERSET;
tf->tf_r15 = stack;
+
+ rval[1] = 0;
}
void