diff options
-rw-r--r-- | lib/libc/arch/hppa64/sys/cerror.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arch/hppa64/sys/cerror.S b/lib/libc/arch/hppa64/sys/cerror.S index 922e89cfee2..ae880bb0b2c 100644 --- a/lib/libc/arch/hppa64/sys/cerror.S +++ b/lib/libc/arch/hppa64/sys/cerror.S @@ -1,4 +1,4 @@ -/* $OpenBSD: cerror.S,v 1.3 2011/04/21 14:12:20 jsing Exp $ */ +/* $OpenBSD: cerror.S,v 1.4 2011/09/19 19:06:48 kettenis Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -33,12 +33,12 @@ WEAK_ALIAS(__cerror, ___cerror) .import errno, data ENTRY(___cerror,0) #ifdef PIC - addil LT%errno, %r19 + addil LT%errno, %dp ldd RT%errno(%r1), %r1 - std %arg3, 0(%r1) + stw %ret0, 0(%r1) #else ldil L%errno, %r1 - std %arg3, R%errno(%r1) + stw %ret0, R%errno(%r1) #endif ldi -1, %ret0 bv %r0(%rp) |