Don't corrupt %r4 - it's a callee save.

Fixes regress/lib/csu/initfini on hppa.
This commit is contained in:
skrll 2009-01-26 18:39:47 +00:00
parent 98b638ac57
commit 18a365911a
1 changed files with 1 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: initfini_asm.S,v 1.1 2004/05/18 19:19:34 skrll Exp $ */
/* $NetBSD: initfini_asm.S,v 1.2 2009/01/26 18:39:47 skrll Exp $ */
/*
* This file placed in the public domain.
@ -8,15 +8,11 @@
#include <machine/asm.h>
.section .init, "ax", @progbits
copy %r19, %r4
bl i_am_init, %rp
nop
copy %r4, %r19
.previous
.section .fini, "ax", @progbits
copy %r19, %r4
bl i_am_fini, %rp
nop
copy %r4, %r19
.previous