diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-12-22 17:26:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-12-22 17:26:47 +0000 |
commit | 1f8e5072fd474e4da45c2a66acdbf09153c713a4 (patch) | |
tree | f03869aee1c1376e6e509d780028096a8ba4ed4b /sys/arch | |
parent | 4e0db5d34b2fa314fbeaebaf6efafb73d51019c7 (diff) |
We already zero out the trapframe, so there is no reason to set individual
members to zero. Gets rid of a bogus comment as a bonus.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index cab22271624..0eb58e4aaba 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.143 2012/12/02 07:03:31 guenther Exp $ */ +/* $OpenBSD: machdep.c,v 1.144 2012/12/22 17:26:46 kettenis Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -330,14 +330,11 @@ setregs(p, pack, stack, retval) } bzero((caddr_t)tf, sizeof *tf); tf->tf_tstate = tstate; - /* %g4 needs to point to the start of the data segment */ - tf->tf_global[4] = 0; tf->tf_pc = pack->ep_entry & ~3; tf->tf_npc = tf->tf_pc + 4; tf->tf_global[2] = tf->tf_global[7] = tf->tf_pc; stack -= sizeof(struct rwindow); tf->tf_out[6] = stack - STACK_OFFSET; - tf->tf_out[7] = 0; #ifdef NOTDEF_DEBUG printf("setregs: setting tf %p sp %p pc %p\n", (long)tf, (long)tf->tf_out[6], (long)tf->tf_pc); |