diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-11-10 19:23:15 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-11-10 19:23:15 +0000 |
commit | 6ce2e80afc07897fdf1f5d58448387f50a8903ed (patch) | |
tree | 3621665817c08a7e981651d98e63a7d443de0265 /sys/arch/alpha | |
parent | fe85ef6b0ffc910a156ca01645d36d2c7cebcd57 (diff) |
Make sure we pass a NULL cleanup argument to __start() by initializing
a2 to zero in the kernel and ld.so. This will let us add the
conditional atexit() call to crt0
ok kettenis@ miod@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index deffc101f69..ef54ca405b6 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.143 2013/10/17 08:02:14 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.144 2013/11/10 19:23:14 guenther Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -1722,6 +1722,7 @@ setregs(p, pack, stack, retval) #ifdef DEBUG for (i = 0; i < FRAME_SIZE; i++) tfp->tf_regs[i] = 0xbabefacedeadbeef; + tfp->tf_regs[FRAME_A1] = 0; #else bzero(tfp->tf_regs, FRAME_SIZE * sizeof tfp->tf_regs[0]); #endif |