diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-09-19 19:06:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-09-19 19:06:49 +0000 |
commit | aeb814d00078a6e67d00a9365904404a8a00bea2 (patch) | |
tree | e226fa8f3bc91c3aa3b06c59e458dc4cb73e8e52 /lib | |
parent | 65ff98b41d159bd1b734583a1206ebe6b1fa7315 (diff) |
Make this actually work.
ok jsing@
Diffstat (limited to 'lib')
-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) |