diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-02-26 21:30:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-02-26 21:30:19 +0000 |
commit | c5c457259a2b339f071f0212fc463012f74de75d (patch) | |
tree | d9fc25710ffb6845fd6010381e84cdca6adae065 /sys/arch | |
parent | b2b082f4cac10af3e0d4996bac834c10adde9bb4 (diff) |
Zero rval[1] in setregs.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/m68k/m68k/m68k_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/mvmeppc/mvmeppc/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/sh/sh/sh_machdep.c | 4 |
6 files changed, 19 insertions, 7 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 24acebce9b9..15b6b0a8ff5 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.103 2006/07/12 15:32:57 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.104 2007/02/26 21:30:16 miod Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -498,7 +498,7 @@ nobootinfo: mem_clusters[mem_cluster_cnt].size |= VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE; mem_cluster_cnt++; - } + } /* XXX else print something! */ if (memc->mddt_usage & MDDT_mbz) { mddtweird = 1; @@ -1844,6 +1844,8 @@ setregs(p, pack, stack, retval) #endif if (p->p_addr->u_pcb.pcb_fpcpu != NULL) fpusave_proc(p, 0); + + retval[1] = 0; } /* diff --git a/sys/arch/m68k/m68k/m68k_machdep.c b/sys/arch/m68k/m68k/m68k_machdep.c index 52917dabb11..13ab1ab21fb 100644 --- a/sys/arch/m68k/m68k/m68k_machdep.c +++ b/sys/arch/m68k/m68k/m68k_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m68k_machdep.c,v 1.9 2007/01/28 16:38:47 miod Exp $ */ +/* $OpenBSD: m68k_machdep.c,v 1.10 2007/02/26 21:30:17 miod Exp $ */ /* $NetBSD: m68k_machdep.c,v 1.3 1997/06/12 09:57:04 veego Exp $ */ /*- @@ -87,6 +87,8 @@ setregs(p, pack, stack, retval) else p->p_md.md_flags &= ~MDP_UNCACHE_WX; #endif + + retval[1] = 0; } /* diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 85f026ce103..80a37d9675e 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.85 2006/06/30 16:14:30 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.86 2007/02/26 21:30:17 miod Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -660,6 +660,8 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack, tf->srr0 = pack->ep_entry; tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT; p->p_addr->u_pcb.pcb_flags = 0; + + retval[1] = 0; } /* diff --git a/sys/arch/mvmeppc/mvmeppc/machdep.c b/sys/arch/mvmeppc/mvmeppc/machdep.c index faf2aa26bac..7cc0e449a64 100644 --- a/sys/arch/mvmeppc/mvmeppc/machdep.c +++ b/sys/arch/mvmeppc/mvmeppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.49 2006/06/30 16:14:31 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.50 2007/02/26 21:30:18 miod Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -574,6 +574,8 @@ setregs(p, pack, stack, retval) tf->srr0 = pack->ep_entry; tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT; p->p_addr->u_pcb.pcb_flags = 0; + + retval[1] = 0; } /* diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index 2f0151b9d86..5497eb696f0 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.33 2006/08/11 08:17:37 jasper Exp $ */ +/* $OpenBSD: machdep.c,v 1.34 2007/02/26 21:30:18 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -801,6 +801,8 @@ setregs(p, pack, stack, retval) p->p_md.md_pc_ctrl = 0; p->p_md.md_watch_1 = 0; p->p_md.md_watch_2 = 0; + + retval[1] = 0; } 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 |